allow bypass without whitelist

master
bel 2020-06-01 11:04:45 -06:00
parent 5a37a4f3ab
commit 8b8bbd8839
1 changed files with 1 additions and 1 deletions

View File

@ -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