Resolve endpoint addresses

This commit is contained in:
Andrey Golovizin 2023-04-15 12:45:30 +02:00
parent 79e88ae9ee
commit 707d55557e
2 changed files with 17 additions and 2 deletions

View file

@ -146,7 +146,7 @@ fn write_config(
writeln!(output, "[Peer]")?;
writeln!(output, "PublicKey = {}", &location.pubkey)?;
writeln!(output, "Endpoint = {}:51820", &location.pool)?;
writeln!(output, "Endpoint = {}", &location.get_endpoint()?)?;
let allowed_ips: &[&str] = if config_opts.no_ipv6 {
&["0.0.0.0/0"]