fix(oohelperd): by default listen on localhost (#887)
Part of https://github.com/ooni/probe/issues/2183
This commit is contained in:
parent
8a0c062844
commit
d711c19b55
|
@ -18,7 +18,7 @@ import (
|
||||||
const maxAcceptableBody = 1 << 24
|
const maxAcceptableBody = 1 << 24
|
||||||
|
|
||||||
var (
|
var (
|
||||||
endpoint = flag.String("endpoint", ":8080", "Endpoint where to listen")
|
endpoint = flag.String("endpoint", "127.0.0.1:8080", "Endpoint where to listen")
|
||||||
srvAddr = make(chan string, 1) // with buffer
|
srvAddr = make(chan string, 1) // with buffer
|
||||||
srvCancel context.CancelFunc
|
srvCancel context.CancelFunc
|
||||||
srvCtx context.Context
|
srvCtx context.Context
|
||||||
|
|
Loading…
Reference in New Issue
Block a user