|
|
@@ -225,6 +225,7 @@ main() {
|
|
|
fi
|
|
|
|
|
|
iptables \
|
|
|
+ -m comment --comment "jsproxy acme redir" \
|
|
|
-t nat \
|
|
|
-I PREROUTING 1 \
|
|
|
-p tcp --dport 80 \
|
|
|
@@ -240,7 +241,7 @@ main() {
|
|
|
log "切换到 jsproxy 用户,执行安装脚本 ..."
|
|
|
su - jsproxy -c "$cmd"
|
|
|
|
|
|
- local line=$(iptables -t nat -nL --line-numbers | grep "tcp dpt:80 redir ports 8080")
|
|
|
+ local line=$(iptables -t nat -nL --line-numbers | grep "jsproxy acme redir")
|
|
|
iptables -t nat -D PREROUTING ${line%% *}
|
|
|
|
|
|
log "安装完成。后续维护参考 https://github.com/EtherDream/jsproxy"
|