update dependency

This commit is contained in:
2025-01-20 12:10:27 +08:00
parent f0bd8c2cec
commit 22ae18120a
12 changed files with 239 additions and 431 deletions

View File

@@ -70,18 +70,21 @@ func ParseSocks(proxy string) (model.Outbound, error) {
password = splitStr[1]
}
}
outboundOptions := option.SOCKSOutboundOptions{
ServerOptions: option.ServerOptions{
Server: server,
ServerPort: port,
},
Username: username,
Password: password,
}
return model.Outbound{
Outbound: option.Outbound{
Type: "socks",
Tag: remarks,
SocksOptions: option.SocksOutboundOptions{
ServerOptions: option.ServerOptions{
Server: server,
ServerPort: port,
},
Username: username,
Password: password,
},
Type: "socks",
Tag: remarks,
Options: outboundOptions,
},
}, nil
}