@@ -33,11 +33,19 @@ tun_notif_on() {
3333 echo " info msg= connected" >> ${CFM_logs_file}
3434}
3535tproxy_notif_off () {
36- echo " info msg= Iptables Tproxy dihapus" >> ${CFM_logs_file}
36+ if [ " ${auto_iptables} " == " false" ]; then
37+ echo " info msg= Iptables Tproxy dihapus" >> ${CFM_logs_file}
38+ else
39+ echo " info msg= auto Iptables Tproxy dihapus" >> ${CFM_logs_file}
40+ fi
3741 echo " info msg= discontinued" >> ${CFM_logs_file}
3842}
3943tproxy_notif_on () {
40- echo " info msg= Iptables Tproxy diterapkan" >> ${CFM_logs_file}
44+ if [ " ${auto_iptables} " == " false" ]; then
45+ echo " info msg= Iptables Tproxy diterapkan" >> ${CFM_logs_file}
46+ else
47+ echo " info msg= auto Iptables Tproxy diterapkan" >> ${CFM_logs_file}
48+ fi
4149 echo " info msg= connected" >> ${CFM_logs_file}
4250}
4351
@@ -377,8 +385,12 @@ while getopts ":sk" signal ; do
377385 case ${signal} in
378386 s)
379387 if [ " ${Clash_tun_status} " == " false" ]; then
380- start_tproxy && tproxy_notif_on
381- rm_logs
388+ if [ " ${auto_iptables} " == " false" ]; then
389+ start_tproxy && tproxy_notif_on
390+ rm_logs
391+ else
392+ tproxy_notif_on
393+ fi
382394 elif [ " ${Clash_tun_status} " == " true" ]; then
383395 if [ " ${Clash_auto_route} " == " true" ]; then
384396 ${iptables_wait} -I FORWARD -o ${tun_device} -j ACCEPT
@@ -399,7 +411,11 @@ while getopts ":sk" signal ; do
399411 ;;
400412 k)
401413 if [ " ${Clash_tun_status} " == " false" ]; then
402- stop_tproxy && tproxy_notif_off
414+ if [ " ${auto_iptables} " == " false" ]; then
415+ stop_tproxy && tproxy_notif_off
416+ else
417+ tproxy_notif_off
418+ fi
403419 elif [ " ${Clash_tun_status} " == " true" ]; then
404420 if [ " ${Clash_auto_route} " == " true" ]; then
405421 ${iptables_wait} -D FORWARD -o ${tun_device} -j ACCEPT
0 commit comments