Shelikhoo преди 4 години
родител
ревизия
1df432218e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)
 		}