Explorar el Código

fix fakedns is nil

Shelikhoo hace 4 años
padre
commit
1df432218e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/dispatcher/fakednssniffer.go

+ 1 - 1
app/dispatcher/fakednssniffer.go

@@ -18,7 +18,7 @@ import (
 func newFakeDNSSniffer(ctx context.Context) (protocolSnifferWithMetadata, error) {
 	var fakeDNSEngine dns.FakeDNSEngine
 	{
-		fakeDNSEngineFeat := core.MustFromContext(ctx).GetFeature(fakeDNSEngine)
+		fakeDNSEngineFeat := core.MustFromContext(ctx).GetFeature((*dns.FakeDNSEngine)(nil))
 		if fakeDNSEngineFeat != nil {
 			fakeDNSEngine = fakeDNSEngineFeat.(dns.FakeDNSEngine)
 		}