@@ -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