mirror of
https://github.com/house-of-vanity/v2-uri-parser.git
synced 2025-12-16 06:57:52 +00:00
fix: change socks5 to socks in inbounds
This commit is contained in:
@@ -17,7 +17,7 @@ pub fn generate_inbound_config(options: InboundGenerationOptions) -> Vec<config_
|
||||
|
||||
pub fn generate_socks_inbound(socks_port: u16) -> config_models::Inbound {
|
||||
return config_models::Inbound {
|
||||
protocol: String::from("socks5"),
|
||||
protocol: String::from("socks"),
|
||||
port: socks_port,
|
||||
tag: String::from("socks-in"),
|
||||
listen: String::from("127.0.0.1"),
|
||||
@@ -42,7 +42,7 @@ mod test {
|
||||
#[test]
|
||||
fn test_generate_socks_inboud() {
|
||||
let socks_inbound = generate_socks_inbound(2080);
|
||||
assert_eq!(socks_inbound.protocol, String::from("socks5"));
|
||||
assert_eq!(socks_inbound.protocol, String::from("socks"));
|
||||
assert_eq!(socks_inbound.listen, String::from("127.0.0.1"));
|
||||
assert_eq!(socks_inbound.tag, String::from("socks-in"));
|
||||
assert_eq!(socks_inbound.port, 2080);
|
||||
|
||||
Reference in New Issue
Block a user