diff options
| author | Emīls <emils@mullvad.net> | 2023-04-19 14:37:03 +0200 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2023-04-20 12:39:48 +0200 |
| commit | a689e646333bc3205301c381fb2f4d1c8e4e8259 (patch) | |
| tree | 4deb0b36a68e43137401c470f0038886dbffc272 /talpid-openvpn/src/proxy | |
| parent | c64f89ba382740b20c532564bad7c62e95346bce (diff) | |
| download | mullvadvpn-a689e646333bc3205301c381fb2f4d1c8e4e8259.tar.xz mullvadvpn-a689e646333bc3205301c381fb2f4d1c8e4e8259.zip | |
Update shadowsocks to 1.15.3
Diffstat (limited to 'talpid-openvpn/src/proxy')
| -rw-r--r-- | talpid-openvpn/src/proxy/shadowsocks.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/talpid-openvpn/src/proxy/shadowsocks.rs b/talpid-openvpn/src/proxy/shadowsocks.rs index b9c9dad407..f677394255 100644 --- a/talpid-openvpn/src/proxy/shadowsocks.rs +++ b/talpid-openvpn/src/proxy/shadowsocks.rs @@ -7,7 +7,9 @@ use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4}; use tokio::task::JoinHandle; use shadowsocks_service::{ - config::{Config, ConfigType, LocalConfig, ProtocolType}, + config::{ + Config, ConfigType, LocalConfig, LocalInstanceConfig, ProtocolType, ServerInstanceConfig, + }, local, shadowsocks::{ config::{Mode, ServerConfig}, @@ -56,7 +58,9 @@ impl ShadowsocksProxyMonitor { local.mode = Mode::TcpOnly; local.addr = Some(ServerAddr::SocketAddr(SocketAddr::from(bound_addr))); - config.local.push(local); + config + .local + .push(LocalInstanceConfig::with_local_config(local)); let server = ServerConfig::new( settings.peer, @@ -69,7 +73,9 @@ impl ShadowsocksProxyMonitor { })?, ); - config.server.push(server); + config + .server + .push(ServerInstanceConfig::with_server_config(server)); #[cfg(target_os = "linux")] { |
