diff options
| -rw-r--r-- | talpid-types/src/net/openvpn.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/talpid-types/src/net/openvpn.rs b/talpid-types/src/net/openvpn.rs index 1bc774a8d6..4c8622fbe6 100644 --- a/talpid-types/src/net/openvpn.rs +++ b/talpid-types/src/net/openvpn.rs @@ -109,6 +109,15 @@ pub struct ShadowsocksProxySettings { pub cipher: String, } +impl ShadowsocksProxySettings { + pub fn get_endpoint(&self) -> Endpoint { + Endpoint { + address: self.peer, + protocol: TransportProtocol::Tcp, + } + } +} + pub static SHADOWSOCKS_CIPHERS: &[&str] = &[ // Stream ciphers. "aes-128-cfb", @@ -133,15 +142,6 @@ pub static SHADOWSOCKS_CIPHERS: &[&str] = &[ "aes-256-pmac-siv", ]; -impl ShadowsocksProxySettings { - pub fn get_endpoint(&self) -> Endpoint { - Endpoint { - address: self.peer, - protocol: TransportProtocol::Tcp, - } - } -} - pub struct ProxySettingsValidation; impl ProxySettingsValidation { |
