From 1cc0d6345fabcf733155e46b34ee352babddce9c Mon Sep 17 00:00:00 2001 From: timvisee Date: Tue, 17 Apr 2018 23:29:05 +0200 Subject: [PATCH] Change default Send host to the public Mozilla one --- api/src/config.rs | 3 +++ cli/src/app.rs | 3 --- cli/src/cmd/arg/host.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/config.rs b/api/src/config.rs index 1e30d15..603df3c 100644 --- a/api/src/config.rs +++ b/api/src/config.rs @@ -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; diff --git a/cli/src/app.rs b/cli/src/app.rs index 9a62aa5..9c51ae0 100644 --- a/cli/src/app.rs +++ b/cli/src/app.rs @@ -9,6 +9,3 @@ pub const APP_AUTHOR: &'static str = "Tim Visee "; /// 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/"; diff --git a/cli/src/cmd/arg/host.rs b/cli/src/cmd/arg/host.rs index b691935..3d88174 100644 --- a/cli/src/cmd/arg/host.rs +++ b/cli/src/cmd/arg/host.rs @@ -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") } }