Pasto, thanks to @lifenjoiner

This commit is contained in:
Frank Denis 2021-05-13 10:30:57 +02:00
parent 6e8628f796
commit 14ef11447e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (plugin *PluginAllowName) Init(proxy *Proxy) error {
if len(line) == 0 {
continue
}
parts := strings.Split(line, "@")
parts := strings.Fields(line)
timeRangeName := ""
if len(parts) == 2 {
if timeRangeParts := strings.Split(parts[1], "@"); len(timeRangeParts) == 2 {