Skip to content

Commit

Permalink
Hotfix: Warp server name
Browse files Browse the repository at this point in the history
Sets server name to "warp" when using Warp protocol / provider
  • Loading branch information
jamesmcm committed Sep 9, 2023
1 parent f1b2e50 commit 5a914c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5a914c4

Please sign in to comment.