Skip peers that don't resolve

This commit is contained in:
Josh Deprez 2024-04-19 22:07:48 +10:00
parent 677e5592e5
commit a70dea7b39
Signed by: josh
SSH Key Fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@
# Go workspace file
go.work
jrouter-prod.yaml

View File

@ -154,7 +154,8 @@ func main() {
raddr, err := net.ResolveUDPAddr("udp4", peerStr)
if err != nil {
log.Fatalf("Invalid UDP address: %v", err)
log.Printf("couldn't resolve UDP address, skipping: %v", err)
continue
}
log.Printf("resolved %q to %v", peerStr, raddr)