diff options
| -rw-r--r-- | mullvad-relay-selector/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mullvad-relay-selector/src/lib.rs b/mullvad-relay-selector/src/lib.rs index 01d4f845aa..2c01a60a31 100644 --- a/mullvad-relay-selector/src/lib.rs +++ b/mullvad-relay-selector/src/lib.rs @@ -903,7 +903,7 @@ impl RelaySelector { &self, obfuscation_settings: &Udp2TcpObfuscationSettings, relay: &Relay, - _endpoint: &MullvadWireguardEndpoint, + endpoint: &MullvadWireguardEndpoint, retry_attempt: u32, ) -> Option<SelectedObfuscator> { let udp2tcp_ports = &self.parsed_relays.lock().locations.wireguard.udp2tcp_ports; @@ -916,7 +916,7 @@ impl RelaySelector { }; udp2tcp_endpoint .map(|udp2tcp_endpoint| ObfuscatorConfig::Udp2Tcp { - endpoint: SocketAddr::new(relay.ipv4_addr_in.into(), *udp2tcp_endpoint), + endpoint: SocketAddr::new(endpoint.peer.endpoint.ip(), *udp2tcp_endpoint), }) .map(|config| SelectedObfuscator { config, |
