mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
Nits
This commit is contained in:
parent
1140e067ad
commit
c46498c1d3
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue