Skip to content

Commit

Permalink
fix host bind
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Jan 27, 2024
1 parent df76653 commit ed853cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions psiphon/p.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/refraction-networking/conjure/pkg/station/log"
"net"
"path/filepath"
"strings"
"sync"
"time"
)
Expand Down Expand Up @@ -321,6 +322,11 @@ func RunPsiphon(wgBind, localSocksPort, country string) context.Context {
if err != nil {
log.Fatal(err)
}
if strings.HasPrefix(host, "127.0.0") {
host = ""
} else {
host = "any"
}
configJSON := `{
"EgressRegion": "` + country + `",
"ListenInterface": "` + host + `",
Expand Down

0 comments on commit ed853cd

Please sign in to comment.