mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
fix(tproxy): RemoveIPWhitelist should apply to correct chain
This commit is contained in:
1 parent
ed89d49a14
commit
b78be1c801
1 file changed
+1
-1
@@ -32,7 +32,7 @@ func (t *tproxy) AddIPWhitelist(cidr string) {
|
||||
|
||||
func (t *tproxy) RemoveIPWhitelist(cidr string) {
|
||||
var commands string
|
||||
commands = fmt.Sprintf(`iptables -w 2 -t mangle -D SETMARK -d %s -j RETURN`, cidr)
|
||||
commands = fmt.Sprintf(`iptables -w 2 -t mangle -D TP_RULE -d %s -j RETURN`, cidr)
|
||||
if !strings.Contains(cidr, ".") {
|
||||
//ipv6
|
||||
commands = strings.Replace(commands, "iptables", "ip6tables", 1)
|
||||
|
||||
Reference in new issue
Block a user