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,