We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee90d24 commit adcdb94Copy full SHA for adcdb94
1 file changed
dnscrypt-proxy/plugin_forward.go
@@ -35,8 +35,12 @@ func (plugin *PluginForward) Init(proxy *Proxy) error {
35
return err
36
}
37
for lineNo, line := range strings.Split(string(bin), "\n") {
38
+ line = strings.Trim(line, " \t\r")
39
+ if len(line) == 0 || strings.HasPrefix(line, "#") {
40
+ continue
41
+ }
42
parts := strings.SplitN(line, ":", 2)
- if len(parts) == 0 || len(strings.Trim(parts[0], " \t\r")) == 0 {
43
+ if len(parts) == 0 {
44
continue
45
46
if len(parts) != 2 {
0 commit comments