From 8b8bbd88399d68509d669958ac07c7d40b80f946 Mon Sep 17 00:00:00 2001 From: bel Date: Mon, 1 Jun 2020 11:04:45 -0600 Subject: [PATCH] allow bypass without whitelist --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 08a460d..baade65 100755 --- a/config/config.go +++ b/config/config.go @@ -38,7 +38,7 @@ func New() map[string]string { if !strings.HasPrefix(conf["port"], ":") { conf["port"] = ":" + conf["port"] } - if len(conf["bypass"]) != 0 { + if len(conf["bypass"]) != 0 && len(conf["whitelist"]) != 0 { conf["whitelist"] += ",," + conf["bypass"] } return conf