mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 17:49:15 +02:00
Change default Send host to the public Mozilla one
This commit is contained in:
parent
8825e6e09c
commit
1cc0d6345f
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
||||||
use reqwest::StatusCode;
|
use reqwest::StatusCode;
|
||||||
|
|
||||||
|
/// The default Send host to use.
|
||||||
|
pub const SEND_DEFAULT_HOST: &'static str = "https://send.firefox.com/";
|
||||||
|
|
||||||
/// The HTTP status code that is returned for expired or non existant files.
|
/// The HTTP status code that is returned for expired or non existant files.
|
||||||
pub const HTTP_STATUS_EXPIRED: StatusCode = StatusCode::NotFound;
|
pub const HTTP_STATUS_EXPIRED: StatusCode = StatusCode::NotFound;
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,3 @@ pub const APP_AUTHOR: &'static str = "Tim Visee <https://timvisee.com/>";
|
||||||
|
|
||||||
/// Application about information.
|
/// Application about information.
|
||||||
pub const APP_ABOUT: &'static str = "A simple Firefox Send CLI client.";
|
pub const APP_ABOUT: &'static str = "A simple Firefox Send CLI client.";
|
||||||
|
|
||||||
/// The default Send host to use.
|
|
||||||
pub const SEND_DEF_HOST: &'static str = "http://localhost:8080/";
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
use clap::{Arg, ArgMatches};
|
use clap::{Arg, ArgMatches};
|
||||||
use failure::Fail;
|
use failure::Fail;
|
||||||
|
use ffsend_api::config::SEND_DEFAULT_HOST;
|
||||||
use ffsend_api::url::Url;
|
use ffsend_api::url::Url;
|
||||||
|
|
||||||
use app::SEND_DEF_HOST;
|
|
||||||
use host::parse_host;
|
use host::parse_host;
|
||||||
use super::{CmdArg, CmdArgOption};
|
use super::{CmdArg, CmdArgOption};
|
||||||
use util::{ErrorHints, quit_error};
|
use util::{ErrorHints, quit_error};
|
||||||
|
@ -21,7 +21,7 @@ impl CmdArg for ArgHost {
|
||||||
.short("h")
|
.short("h")
|
||||||
.alias("server")
|
.alias("server")
|
||||||
.value_name("URL")
|
.value_name("URL")
|
||||||
.default_value(SEND_DEF_HOST)
|
.default_value(SEND_DEFAULT_HOST)
|
||||||
.help("The remote host to upload to")
|
.help("The remote host to upload to")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue