allow bypass without whitelist
parent
5a37a4f3ab
commit
8b8bbd8839
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue