From 4f2abece817c1be59505dbd7c55f02bf47a7874d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 1 Sep 2022 16:56:42 +0100 Subject: [PATCH] Fix panic in `tcp.init` for incorrectly formatted listen addresses --- src/core/tcp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/tcp.go b/src/core/tcp.go index 8e1435ef..ab952806 100644 --- a/src/core/tcp.go +++ b/src/core/tcp.go @@ -109,6 +109,7 @@ func (t *tcp) init(l *links, listeners []ListenAddress) error { u, err := url.Parse(string(listenaddr)) if err != nil { t.links.core.log.Errorln("Failed to parse listener: listener", listenaddr, "is not correctly formatted, ignoring") + continue } if _, err := t.listenURL(u, ""); err != nil { return err