File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 33mod singbox;
44mod template;
55
6- use crate :: singbox:: common:: base:: Network ;
76use clap:: Parser ;
87use clash:: proxy:: Proxy ;
98use reqwest:: { blocking:: Client , header} ;
@@ -31,19 +30,12 @@ pub fn extra_name(outbound: &Proxy) -> String {
3130pub fn transform_outbound_protocol ( outbound : & Proxy ) -> Outbound {
3231 match outbound {
3332 Proxy :: Ss ( ss) => {
34- let mut network = Network :: Tcp ;
35- if let Some ( is_udp) = ss. udp {
36- if is_udp {
37- network = Network :: Udp
38- }
39- }
4033 return Outbound :: Shadowsocks ( shadowsocks:: Shadowsocks {
4134 tag : ss. name . to_string ( ) ,
4235 server : ss. server . to_string ( ) ,
4336 server_port : ss. port ,
4437 method : ss. cipher . to_string ( ) ,
4538 password : ss. password . to_string ( ) ,
46- network : Some ( network) ,
4739 ..shadowsocks:: Shadowsocks :: default ( )
4840 } ) ;
4941 }
You can’t perform that action at this time.
0 commit comments