1
0

fix socks5 config must take a username

This commit is contained in:
EAimTY 2023-06-03 22:22:58 +09:00
parent f51b2741d3
commit 29b75ac739

View File

@ -117,10 +117,10 @@ pub struct Relay {
pub struct Local {
pub server: SocketAddr,
#[serde(deserialize_with = "deserialize_optional_bytes")]
#[serde(deserialize_with = "deserialize_optional_bytes", default)]
pub username: Option<Vec<u8>>,
#[serde(deserialize_with = "deserialize_optional_bytes")]
#[serde(deserialize_with = "deserialize_optional_bytes", default)]
pub password: Option<Vec<u8>>,
pub dual_stack: Option<bool>,