Chore: use "-m mark --mark" instead of "-m owner --uid-owner"

This commit is contained in:
yaling888
2022-02-23 14:19:59 +08:00
parent 592b6a785e
commit cd3b139c3f
3 changed files with 12 additions and 17 deletions

View File

@ -280,6 +280,10 @@ func updateIPTables(dns *config.DNS, general *config.General) {
tproxy.CleanUpTProxyLinuxIPTables()
if dialer.DefaultRoutingMark.Load() == 0 {
dialer.DefaultRoutingMark.Store(2158)
}
err = tproxy.SetTProxyLinuxIPTables(general.Interface, general.TProxyPort, dnsPort)
if err != nil {