From 29b75ac73930143be69527211a7269404a271cec Mon Sep 17 00:00:00 2001 From: EAimTY Date: Sat, 3 Jun 2023 22:22:58 +0900 Subject: [PATCH] fix socks5 config must take a username --- tuic-client/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuic-client/src/config.rs b/tuic-client/src/config.rs index 70feb0a..c44ce5f 100644 --- a/tuic-client/src/config.rs +++ b/tuic-client/src/config.rs @@ -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>, - #[serde(deserialize_with = "deserialize_optional_bytes")] + #[serde(deserialize_with = "deserialize_optional_bytes", default)] pub password: Option>, pub dual_stack: Option,