fix(oohelperd): by default listen on localhost (#887)

Part of https://github.com/ooni/probe/issues/2183
This commit is contained in:
Simone Basso 2022-08-28 11:54:15 +02:00 committed by GitHub
parent 8a0c062844
commit d711c19b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ import (
const maxAcceptableBody = 1 << 24
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
srvCancel context.CancelFunc
srvCtx context.Context