From 8da1b698ad7a7ba731ba9d6eeb85402ecf9ba3fa Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 13 May 2021 10:30:57 +0200 Subject: [PATCH] Revert "Pasto, thanks to @lifenjoiner" This reverts commit 14ef11447e06214c7fc043bf738ec80e9b92553d. --- dnscrypt-proxy/plugin_allow_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/plugin_allow_name.go b/dnscrypt-proxy/plugin_allow_name.go index 1deaaef0..005cbbc8 100644 --- a/dnscrypt-proxy/plugin_allow_name.go +++ b/dnscrypt-proxy/plugin_allow_name.go @@ -40,7 +40,7 @@ func (plugin *PluginAllowName) Init(proxy *Proxy) error { if len(line) == 0 { continue } - parts := strings.Fields(line) + parts := strings.Split(line, "@") timeRangeName := "" if len(parts) == 2 { line = strings.TrimSpace(parts[0])