Skip to content

Commit

Permalink
Use localhost as default host to listen on (#128)
Browse files Browse the repository at this point in the history
This will prevent macOS from issuing pop-up modals asking for approval for network access
  • Loading branch information
paulsmith committed Apr 4, 2024
1 parent f29a88a commit 7ffdbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _runtime/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func main() {
if *unixSocket != "" {
ln, err = net.Listen("unix", *unixSocket)
} else {
host := "0.0.0.0"
host := "localhost"
addr := host + ":" + *port
ln, err = net.Listen("tcp4", addr) // TODO(paulsmith): may want to support IPv6
}
Expand Down

0 comments on commit 7ffdbd5

Please sign in to comment.