Procházet zdrojové kódy

fix fakedns is nil

Shelikhoo před 4 roky
rodič
revize
1df432218e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)
 		}