@@ -17,8 +17,8 @@ impl From<talpid_types::net::TunnelEndpoint> for proto::TunnelEndpoint {
17
17
address : proxy_ep. endpoint . address . to_string ( ) ,
18
18
protocol : i32:: from ( proto:: TransportProtocol :: from ( proxy_ep. endpoint . protocol ) ) ,
19
19
proxy_type : match proxy_ep. proxy_type {
20
- net:: proxy:: ProxyType :: Shadowsocks => i32:: from ( proto:: ProxyType :: Shadowsocks ) ,
21
- net:: proxy:: ProxyType :: Custom => i32:: from ( proto:: ProxyType :: Custom ) ,
20
+ net:: proxy:: ProxyType :: Shadowsocks => i32:: from ( proto:: proxy_endpoint :: ProxyType :: Shadowsocks ) ,
21
+ net:: proxy:: ProxyType :: Custom => i32:: from ( proto:: proxy_endpoint :: ProxyType :: Custom ) ,
22
22
} ,
23
23
} ) ,
24
24
obfuscation : endpoint. obfuscation . map ( |obfuscation_endpoint| {
@@ -77,11 +77,11 @@ impl TryFrom<proto::TunnelEndpoint> for talpid_types::net::TunnelEndpoint {
77
77
) ?,
78
78
protocol : try_transport_protocol_from_i32 ( proxy_ep. protocol ) ?,
79
79
} ,
80
- proxy_type : match proto:: ProxyType :: try_from ( proxy_ep. proxy_type ) {
81
- Ok ( proto:: ProxyType :: Shadowsocks ) => {
80
+ proxy_type : match proto:: proxy_endpoint :: ProxyType :: try_from ( proxy_ep. proxy_type ) {
81
+ Ok ( proto:: proxy_endpoint :: ProxyType :: Shadowsocks ) => {
82
82
talpid_net:: proxy:: ProxyType :: Shadowsocks
83
83
}
84
- Ok ( proto:: ProxyType :: Custom ) => talpid_net:: proxy:: ProxyType :: Custom ,
84
+ Ok ( proto:: proxy_endpoint :: ProxyType :: Custom ) => talpid_net:: proxy:: ProxyType :: Custom ,
85
85
Err ( _) => {
86
86
return Err ( FromProtobufTypeError :: InvalidArgument (
87
87
"unknown proxy type" ,
0 commit comments