Nits
This commit is contained in:
parent
363d44919f
commit
4d1cd67d4d
|
@ -117,7 +117,6 @@ func handleColdStartClient(clientPc *net.UDPConn, cancelChannel chan struct{}, i
|
||||||
}
|
}
|
||||||
|
|
||||||
func addColdStartListener(
|
func addColdStartListener(
|
||||||
proxy *Proxy,
|
|
||||||
ipsMap *CaptivePortalMap,
|
ipsMap *CaptivePortalMap,
|
||||||
listenAddrStr string,
|
listenAddrStr string,
|
||||||
captivePortalHandler *CaptivePortalHandler,
|
captivePortalHandler *CaptivePortalHandler,
|
||||||
|
@ -191,7 +190,7 @@ func ColdStart(proxy *Proxy) (*CaptivePortalHandler, error) {
|
||||||
}
|
}
|
||||||
ok := false
|
ok := false
|
||||||
for _, listenAddrStr := range listenAddrStrs {
|
for _, listenAddrStr := range listenAddrStrs {
|
||||||
err = addColdStartListener(proxy, &ipsMap, listenAddrStr, &captivePortalHandler)
|
err = addColdStartListener(&ipsMap, listenAddrStr, &captivePortalHandler)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
ok = true
|
ok = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ func (plugin *PluginDNS64) Eval(pluginsState *PluginsState, msg *dns.Msg) error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil || resp.Rcode != dns.RcodeSuccess {
|
if resp.Rcode != dns.RcodeSuccess {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ func loadTestSourceNames(t *testing.T, d *SourceTestData) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func generateFixtureState(t *testing.T, d *SourceTestData, suffix, file string, state SourceTestState) {
|
func generateFixtureState(_ *testing.T, d *SourceTestData, suffix, file string, state SourceTestState) {
|
||||||
if _, ok := d.fixtures[state]; !ok {
|
if _, ok := d.fixtures[state]; !ok {
|
||||||
d.fixtures[state] = map[string]SourceFixture{}
|
d.fixtures[state] = map[string]SourceFixture{}
|
||||||
}
|
}
|
||||||
|
@ -296,7 +296,7 @@ func prepSourceTestCache(t *testing.T, d *SourceTestData, e *SourceTestExpect, s
|
||||||
}
|
}
|
||||||
|
|
||||||
func prepSourceTestDownload(
|
func prepSourceTestDownload(
|
||||||
t *testing.T,
|
_ *testing.T,
|
||||||
d *SourceTestData,
|
d *SourceTestData,
|
||||||
e *SourceTestExpect,
|
e *SourceTestExpect,
|
||||||
source string,
|
source string,
|
||||||
|
|
Loading…
Reference in New Issue