Chore: merge branch 'with-tun' into plus-pro

This commit is contained in:
yaling888
2022-04-12 00:47:45 +08:00
17 changed files with 323 additions and 261 deletions

View File

@ -195,9 +195,9 @@ func updateRuleProviders(providers map[string]C.Rule) {
}
func updateTun(tun *config.Tun, dns *config.DNS) {
var tunAddressPrefix string
var tunAddressPrefix *netip.Prefix
if dns.FakeIPRange != nil {
tunAddressPrefix = dns.FakeIPRange.IPNet().String()
tunAddressPrefix = dns.FakeIPRange.IPNet()
}
P.ReCreateTun(tun, tunAddressPrefix, tunnel.TCPIn(), tunnel.UDPIn())