Skip to content

Commit

Permalink
⛔ config: deny unknown fields
Browse files Browse the repository at this point in the history
  • Loading branch information
database64128 authored and zonyitoo committed Feb 4, 2023
1 parent 92c218d commit 29991bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ struct SSBalancerConfig {
}

#[derive(Serialize, Deserialize, Debug, Default)]
#[serde(deny_unknown_fields)]
struct SSConfig {
#[serde(skip_serializing_if = "Option::is_none")]
server: Option<String>,
Expand Down

0 comments on commit 29991bc

Please sign in to comment.