Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
refine init script
Browse files Browse the repository at this point in the history
  • Loading branch information
aa65535 committed Dec 27, 2014
1 parent 84ced03 commit 210604a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions files/redsocks2.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 210604a

Please sign in to comment.