Skip internal fake-ip queries

This commit is contained in:
世界
2023-12-01 21:48:21 +08:00
parent 38d28e0763
commit a99deb2cb5
2 changed files with 7 additions and 4 deletions

View File

@@ -261,6 +261,9 @@ func NewRouter(
}
defaultTransport = transports[0]
}
if _, isFakeIP := defaultTransport.(adapter.FakeIPTransport); isFakeIP {
return nil, E.New("default DNS server cannot be fakeip")
}
router.defaultTransport = defaultTransport
router.transports = transports
router.transportMap = transportMap