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 workspace file
go.work go.work
jrouter-prod.yaml

View file

@ -154,7 +154,8 @@ func main() {
raddr, err := net.ResolveUDPAddr("udp4", peerStr) raddr, err := net.ResolveUDPAddr("udp4", peerStr)
if err != nil { 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) log.Printf("resolved %q to %v", peerStr, raddr)