diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-04-23 16:18:54 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-04-24 11:38:24 +0200 |
| commit | 1fdced0547575690ca7edb5b0aeecb0699a22328 (patch) | |
| tree | c2a486e2dc14bacc10f388095ab513f187f36af5 | |
| parent | 17f09a13cb2f6996d960e35671fc0dff7b42c1d2 (diff) | |
| download | mullvadvpn-1fdced0547575690ca7edb5b0aeecb0699a22328.tar.xz mullvadvpn-1fdced0547575690ca7edb5b0aeecb0699a22328.zip | |
Move ShadowsocksProxySettings to better place
| -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 { |
