Skip to content

Commit

Permalink
fix: do not set the host address (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens authored Oct 2, 2024
1 parent cb5965f commit d240aa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/outline-ss-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"net/http"
"os"
"os/signal"
"strconv"
"sync"
"syscall"
"time"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d240aa1

Please sign in to comment.