Add domain strategy for dns outbound

This commit is contained in:
hmol233 2021-05-03 21:45:21 +08:00
parent 2e56fe11e1
commit 4a4e160a54
No known key found for this signature in database
GPG key ID: D617A9DAB0C992D5
6 changed files with 133 additions and 31 deletions

View file

@ -94,6 +94,12 @@ var (
d.FakeEnable = true
return d
}
LookupFakeOnly = func(d *IPOption) *IPOption {
d.FakeEnable = true
d.IPv4Enable = false
d.IPv6Enable = false
return d
}
LookupNoFake = func(d *IPOption) *IPOption {
d.FakeEnable = false
return d