allow bypass without whitelist
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user