deserialize socks5 auth config as plain strings
This commit is contained in:
parent
29b75ac739
commit
be858579fd
@ -277,8 +277,8 @@ pub fn deserialize_optional_bytes<'de, D>(deserializer: D) -> Result<Option<Vec<
|
|||||||
where
|
where
|
||||||
D: Deserializer<'de>,
|
D: Deserializer<'de>,
|
||||||
{
|
{
|
||||||
let s = Option::<String>::deserialize(deserializer)?;
|
let s = String::deserialize(deserializer)?;
|
||||||
Ok(s.map(|s| s.into_bytes()))
|
Ok(Some(s.into_bytes()))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn deserialize_duration<'de, D>(deserializer: D) -> Result<Duration, D::Error>
|
pub fn deserialize_duration<'de, D>(deserializer: D) -> Result<Duration, D::Error>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user