Skip to content

Commit 7b90eaf

Browse files
committed
listenAddrStr can be empty
1 parent b618b0d commit 7b90eaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dnscrypt-proxy/coldstart.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ func addColdStartListener(
125125
listenAddrStr string,
126126
captivePortalHandler *CaptivePortalHandler,
127127
) error {
128+
if len(listenAddrStr) == 0 {
129+
return nil
130+
}
128131
network := "udp"
129132
isIPv4 := isDigit(listenAddrStr[0])
130133
if isIPv4 {

0 commit comments

Comments
 (0)