| commit | 52c640737d32c709e8219c2607918ca7e780b485 | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@jschaer.ch> | Mon Apr 08 18:22:25 2024 +0200 |
| committer | Jan Schär <jan@jschaer.ch> | Mon Apr 08 16:42:17 2024 +0000 |
| tree | d2999e7b152b9365cf750527375a9ca87cd3294c | |
| parent | 4912c5a6ba94166c49ed2bf2cbb1a7289e48bb30 [diff] |
m/n/c/network: fix handling of nameserver parse failure If parsing failed, don't append the IP to the list. Change-Id: Ie2fa2812790a919697458ec178b475a420417f6f Reviewed-on: https://review.monogon.dev/c/monogon/+/2924 Reviewed-by: Lorenz Brun <lorenz@monogon.tech> Tested-by: Jenkins CI Vouch-Run-CI: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/node/core/network/static.go b/metropolis/node/core/network/static.go index 5cec110..a178e2c 100644 --- a/metropolis/node/core/network/static.go +++ b/metropolis/node/core/network/static.go
@@ -150,6 +150,7 @@ nsIP := net.ParseIP(ns.Ip) if nsIP == nil { l.Warningf("failed to parse %q as nameserver IP", ns.Ip) + continue } nsIPList = append(nsIPList, nsIP) }