From 210604a7af871d2677fdfe9e0aab7e8f1d7ca6e3 Mon Sep 17 00:00:00 2001 From: aa65535 Date: Sat, 27 Dec 2014 20:36:07 +0800 Subject: [PATCH] refine init script --- files/redsocks2.init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/redsocks2.init b/files/redsocks2.init index c70ceab..bba4ef9 100644 --- a/files/redsocks2.init +++ b/files/redsocks2.init @@ -26,10 +26,9 @@ start_redsocks2() { -e "s#|PROXY_IP|#$proxy_ip#" \ -e "s#|PROXY_PORT|#$proxy_port#" \ -e "s#|AUTO_PROXY|#$auto_proxy#" \ - -e "s#|TIMEOUT|#${timeout:-0}#" \ + -e "s#|TIMEOUT|#${timeout:-5}#" \ $TPL >$CONFIG - - service_start /usr/bin/redsocks2 -c $CONFIG + service_start /usr/bin/redsocks2 -c $CONFIG || exit 1 iptables-restore -n <<-EOF *nat