Skip to content

Commit c418618

Browse files
author
messica
committed
feat: 🎸 delete network property when convert protocol ss
1 parent 715ed8a commit c418618

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ mod cli;
33
mod singbox;
44
mod template;
55

6-
use crate::singbox::common::base::Network;
76
use clap::Parser;
87
use clash::proxy::Proxy;
98
use reqwest::{blocking::Client, header};
@@ -31,19 +30,12 @@ pub fn extra_name(outbound: &Proxy) -> String {
3130
pub 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
}

0 commit comments

Comments
 (0)