Skip to content

Commit

Permalink
Revert "feat(init): ua2f auto start (#35)"
Browse files Browse the repository at this point in the history
This reverts commit 0befa59.
  • Loading branch information
Zxilly authored Nov 12, 2021
1 parent 0befa59 commit 9c7ea38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion files/ua2f.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

config ua2f 'enabled'
option enabled '1'
option enabled '0'

config ua2f 'firewall'
option handle_fw '1'
Expand Down
2 changes: 0 additions & 2 deletions files/ua2f.init
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2020 Zxilly <zhouxinyu1001@gmail.com>
# Copyright (C) 2021 Tianling Shen <cnsztl@immortalwrt.org>
# Copyright (C) 2021 SunBK201 <sunbk201gm@gmail.com>

USE_PROCD=1

Expand Down Expand Up @@ -51,7 +50,6 @@ start_service() {
$IPT_M -A FORWARD -p tcp -m conntrack --ctdir ORIGINAL -j ua2f
$IPT_M -A FORWARD -p tcp -m conntrack --ctdir REPLY

# 处理流向内网的流量
[ "$handle_intranet" -eq "1" ] && {
local wan="$(route -n | grep UG | awk '{print $2}')"

Expand Down

0 comments on commit 9c7ea38

Please sign in to comment.