1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2025-01-07 01:41:22 +01:00
This commit is contained in:
Frank Denis 2018-01-17 17:25:43 +01:00
parent 1140e067ad
commit c46498c1d3

View File

@ -20,7 +20,7 @@ import (
type PluginBlockType int
const (
PluginBlockTypeNone = iota
PluginBlockTypeNone PluginBlockType = iota
PluginBlockTypePrefix
PluginBlockTypeSuffix
PluginBlockTypeSubstring
@ -87,9 +87,7 @@ func (plugin *PluginBlockName) Init(proxy *Proxy) error {
if leadingStar {
line = line[1:]
}
if strings.HasPrefix(line, ".") {
line = line[1:]
}
line = strings.TrimPrefix(line, ".")
}
if len(line) == 0 {
dlog.Errorf("Syntax error in block rule at line %d", 1+lineNo)