From 5a914c4cdeb6c2fb1e99a08a0e058394de4524b1 Mon Sep 17 00:00:00 2001 From: James McMurray Date: Sat, 9 Sep 2023 18:33:09 +0200 Subject: [PATCH] Hotfix: Warp server name Sets server name to "warp" when using Warp protocol / provider --- src/exec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/exec.rs b/src/exec.rs index 4afdf27..f245720 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -228,8 +228,10 @@ pub fn exec(command: ExecCommand, uiclient: &dyn UiClient) -> anyhow::Result<()> if provider == VpnProvider::Custom { bail!("Must provide config file if using custom VPN Provider"); } + server_name = command .server + .or_else(|| if provider == VpnProvider::Warp {Some("warp".to_owned())} else {None}) .or_else(|| { vopono_config_settings .get("server")