From ebc3f362368bf70dfa898daf04c8129ba013d7a5 Mon Sep 17 00:00:00 2001 From: "Maze.tsz" Date: Mon, 27 Dec 2021 03:29:14 +0800 Subject: [PATCH] [fix]autoIptables --- listener/tproxy/tproxy_linux_iptables.go | 2 +- listener/tun/dev/dev_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/listener/tproxy/tproxy_linux_iptables.go b/listener/tproxy/tproxy_linux_iptables.go index d517c6f7..e2c266e7 100644 --- a/listener/tproxy/tproxy_linux_iptables.go +++ b/listener/tproxy/tproxy_linux_iptables.go @@ -20,7 +20,7 @@ var ( const ( PROXY_FWMARK = "0x2d0" PROXY_ROUTE_TABLE = "0x2d0" - USERNAME = "Clash.Meta" + USERNAME = "root" ) func SetTProxyLinuxIPTables(ifname string, tport int, dport int) error { diff --git a/listener/tun/dev/dev_linux.go b/listener/tun/dev/dev_linux.go index c4f1cd92..4d63a87d 100644 --- a/listener/tun/dev/dev_linux.go +++ b/listener/tun/dev/dev_linux.go @@ -38,7 +38,7 @@ type tunLinux struct { // OpenTunDevice return a TunDevice according a URL func OpenTunDevice(tunAddress string, autoRoute bool) (TunDevice, error) { - deviceURL, _ := url.Parse("dev://utun") + deviceURL, _ := url.Parse("dev://meta") mtu, _ := strconv.ParseInt(deviceURL.Query().Get("mtu"), 0, 32) t := &tunLinux{