Skip to content

Commit

Permalink
Allow DNS Names in Custom Wiregaurd Configs
Browse files Browse the repository at this point in the history
Fix wiregaurd config parser such that deserializer is called correctly.
  • Loading branch information
noah-witt committed Oct 2, 2022
1 parent 2e22fad commit ab5aae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vopono_core/src/network/wireguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ pub struct WireguardPeer {
pub public_key: String,
#[serde(rename = "AllowedIPs", deserialize_with = "de_vec_ipnet")]
pub allowed_ips: Vec<IpNet>,
#[serde(rename = "Endpoint")]
#[serde(rename = "Endpoint", deserialize_with = "de_socketaddr")]
pub endpoint: SocketAddr,
#[serde(rename = "PersistentKeepalive")]
pub keepalive: Option<String>,
Expand Down

0 comments on commit ab5aae6

Please sign in to comment.