From 3ea4e0bf7c17b2c34a38cd5487b032e20c28cd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 15 Aug 2023 09:57:11 +0100 Subject: [PATCH] using versioned socks5 SP protocol --- common/socks5-client-core/src/config/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/socks5-client-core/src/config/mod.rs b/common/socks5-client-core/src/config/mod.rs index 6a34a06d22..a560645140 100644 --- a/common/socks5-client-core/src/config/mod.rs +++ b/common/socks5-client-core/src/config/mod.rs @@ -110,10 +110,10 @@ pub struct Socks5 { /// The version of the 'service provider' this client is going to use in its communication with the /// specified socks5 provider. // if in doubt, use the legacy version as initially nobody will be using the updated binaries - #[serde(default = "ProviderInterfaceVersion::new_legacy")] + #[serde(default)] pub provider_interface_version: ProviderInterfaceVersion, - #[serde(default = "Socks5ProtocolVersion::new_legacy")] + #[serde(default)] pub socks5_protocol_version: Socks5ProtocolVersion, /// Specifies whether this client is going to use an anonymous sender tag for communication with the service provider. @@ -147,7 +147,7 @@ impl Socks5 { } #[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq, Serialize)] -#[serde(deny_unknown_fields)] +#[serde(default, deny_unknown_fields)] pub struct Socks5Debug { /// Number of reply SURBs attached to each `Request::Connect` message. pub connection_start_surbs: u32,