add default fake ip filter list

This commit is contained in:
Kr328 committed 2020-06-13 14:08:14 +08:00
1 parent 1333c554a9
commit 9cae7f9ad7
2 files changed
+19 -8

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package config
var defaultFakeIPFilter = []string{
// stun services
"+.stun.*.*",
"+.stun.*.*.*",
"+.stun.*.*.*.*",
// Google Voices
"lens.l.google.com",
"stun.l.google.com",
// Nintendo Switch
"*.n.n.srv.nintendo.net",
}
+4 -8
View File
@@ -32,14 +32,10 @@ func init() {
GeoIP: false,
IPCIDR: []string{},
},
Listen: ":0",
EnhancedMode: dns.FAKEIP,
FakeIPRange: "198.18.0.0/16",
FakeIPFilter: []string{ // default fake-ip filters for stun services
"+.stun.*.*",
"+.stun.*.*.*",
"+.stun.*.*.*.*",
},
Listen: ":0",
EnhancedMode: dns.FAKEIP,
FakeIPRange: "198.18.0.0/16",
FakeIPFilter: defaultFakeIPFilter,
DefaultNameserver: defaultNameServers,
}
}