by default, only listen on localhost

This commit is contained in:
nemunaire 2016-11-19 16:17:53 +01:00
parent 018282d798
commit aa7afe1a6a
3 changed files with 23 additions and 2 deletions

View file

@ -27,7 +27,7 @@ func touchStartedFile(startSub time.Duration) {
}
func main() {
var bind = flag.String("bind", "0.0.0.0:8080", "Bind port/socket")
var bind = flag.String("bind", "127.0.0.1:8080", "Bind port/socket")
var prefix = flag.String("prefix", "", "Request path prefix to strip (from proxy)")
var start = flag.Int64("start", 0, fmt.Sprintf("Challenge start timestamp (in 2 minutes: %d)", time.Now().Unix()/60*60+120))
var duration = flag.Duration("duration", 180*time.Minute, "Challenge duration")