Change default Send host to the public Mozilla one

This commit is contained in:
timvisee 2018-04-17 23:29:05 +02:00
parent 8825e6e09c
commit 1cc0d6345f
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,8 @@
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.
pub const HTTP_STATUS_EXPIRED: StatusCode = StatusCode::NotFound;

View file

@ -9,6 +9,3 @@ pub const APP_AUTHOR: &'static str = "Tim Visee <https://timvisee.com/>";
/// Application about information.
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/";

View file

@ -1,8 +1,8 @@
use clap::{Arg, ArgMatches};
use failure::Fail;
use ffsend_api::config::SEND_DEFAULT_HOST;
use ffsend_api::url::Url;
use app::SEND_DEF_HOST;
use host::parse_host;
use super::{CmdArg, CmdArgOption};
use util::{ErrorHints, quit_error};
@ -21,7 +21,7 @@ impl CmdArg for ArgHost {
.short("h")
.alias("server")
.value_name("URL")
.default_value(SEND_DEF_HOST)
.default_value(SEND_DEFAULT_HOST)
.help("The remote host to upload to")
}
}