Skip to content

Commit d240aa1

Browse files
authored
fix: do not set the host address (#217)
1 parent cb5965f commit d240aa1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/outline-ss-server/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"net/http"
2424
"os"
2525
"os/signal"
26-
"strconv"
2726
"sync"
2827
"syscall"
2928
"time"
@@ -212,7 +211,10 @@ func (s *OutlineServer) runConfig(config Config) (func() error, error) {
212211
cipherList.PushBack(&entry)
213212
}
214213
for portNum, cipherList := range portCiphers {
215-
addr := net.JoinHostPort("::", strconv.Itoa(portNum))
214+
// NOTE: We explicitly construct the address string with only the port
215+
// number. This will result in an address that listens on all available
216+
// network interfaces (both IPv4 and IPv6).
217+
addr := fmt.Sprintf(":%d", portNum)
216218

217219
ciphers := service.NewCipherList()
218220
ciphers.Update(cipherList)

0 commit comments

Comments
 (0)