From eb7db044ce53bcacf01625e1215e2b8557ba3a26 Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Thu, 21 Sep 2023 16:33:07 +0200 Subject: [PATCH] Fix printing arguments in the wrong order --- mullvad-api/src/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mullvad-api/src/proxy.rs b/mullvad-api/src/proxy.rs index 2c41f2f3320c..44a2309587e5 100644 --- a/mullvad-api/src/proxy.rs +++ b/mullvad-api/src/proxy.rs @@ -60,7 +60,7 @@ impl fmt::Display for ProxyConfig { ProxyConfig::Shadowsocks(ss) => write!(f, "Shadowsocks {}/TCP", ss.peer), ProxyConfig::Socks(socks) => match socks { access_method::Socks5::Local(s) => { - write!(f, "Socks5 {}/TCP via localhost:{}", s.port, s.peer) + write!(f, "Socks5 {}/TCP via localhost:{}", s.peer, s.port) } access_method::Socks5::Remote(s) => write!(f, "Socks5 {}/TCP", s.peer), },