diff --git a/cmd/outline-ss-server/main.go b/cmd/outline-ss-server/main.go index c2704c1..3a04af0 100644 --- a/cmd/outline-ss-server/main.go +++ b/cmd/outline-ss-server/main.go @@ -23,7 +23,6 @@ import ( "net/http" "os" "os/signal" - "strconv" "sync" "syscall" "time" @@ -212,7 +211,10 @@ func (s *OutlineServer) runConfig(config Config) (func() error, error) { cipherList.PushBack(&entry) } for portNum, cipherList := range portCiphers { - addr := net.JoinHostPort("::", strconv.Itoa(portNum)) + // NOTE: We explicitly construct the address string with only the port + // number. This will result in an address that listens on all available + // network interfaces (both IPv4 and IPv6). + addr := fmt.Sprintf(":%d", portNum) ciphers := service.NewCipherList() ciphers.Update(cipherList)