Skip to content

Commit ed0dbc2

Browse files
committed
Code completion propagates typos :)
1 parent a73b547 commit ed0dbc2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

dnscrypt-proxy/plugins.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ func InitPluginsGlobals(pluginsGlobals *PluginsGlobals, proxy *Proxy) error {
153153
}
154154

155155
// blockedQueryResponse can be 'refused', 'hinfo' or IP responses 'a:IPv4,aaaa:IPv6
156-
func parseBlockedQueryResponse(bockedResponse string, pluginsGlobals *PluginsGlobals) {
157-
bockedResponse = strings.ReplaceAll(strings.ToLower(bockedResponse), " ", "")
156+
func parseBlockedQueryResponse(blockedResponse string, pluginsGlobals *PluginsGlobals) {
157+
blockedResponse = strings.ReplaceAll(strings.ToLower(blockedResponse), " ", "")
158158

159-
if strings.HasPrefix(bockedResponse, "a:") {
160-
blockedIPStrings := strings.Split(bockedResponse, ",")
159+
if strings.HasPrefix(blockedResponse, "a:") {
160+
blockedIPStrings := strings.Split(blockedResponse, ",")
161161
(*pluginsGlobals).respondWithIPv4 = net.ParseIP(strings.TrimPrefix(blockedIPStrings[0], "a:"))
162162

163163
if (*pluginsGlobals).respondWithIPv4 == nil {
@@ -187,13 +187,13 @@ func parseBlockedQueryResponse(bockedResponse string, pluginsGlobals *PluginsGlo
187187
}
188188

189189
} else {
190-
switch bockedResponse {
190+
switch blockedResponse {
191191
case "refused":
192192
(*pluginsGlobals).refusedCodeInResponses = true
193193
case "hinfo":
194194
(*pluginsGlobals).refusedCodeInResponses = false
195195
default:
196-
dlog.Noticef("Invalid blocked_query_response option [%s], defaulting to `hinfo`", bockedResponse)
196+
dlog.Noticef("Invalid blocked_query_response option [%s], defaulting to `hinfo`", blockedResponse)
197197
(*pluginsGlobals).refusedCodeInResponses = false
198198
}
199199
}

0 commit comments

Comments
 (0)