Fix --no-ipv6 for AllowedIPs

This commit is contained in:
Andrey Golovizin 2021-07-14 17:36:43 +02:00
parent 63a01e2a01
commit 8d71621102

View file

@ -192,9 +192,9 @@ fn write_config(
write_list(output, "Endpoint = ", endpoint_addrs)?;
let allowed_ips: &[&str] = if config_opts.no_ipv6 {
&["0.0.0.0", "::0"]
} else {
&["0.0.0.0"]
} else {
&["0.0.0.0", "::0"]
};
write_list(output, "AllowedIPs = ", allowed_ips)?;