move redsocks SHARE_METHOD judgement

This commit is contained in:
garywill 2021-01-20 13:10:02 +08:00
parent c1dcfba83c
commit f074010c31
1 changed files with 2 additions and 2 deletions

View File

@ -236,6 +236,7 @@ parse_user_options(){
--tp)
shift
TP_PORT="$1"
SHARE_METHOD=redsocks
shift
;;
@ -1776,8 +1777,7 @@ decide_target_interface
decide_ip_addresses
# TODO: should this be some other place?
[[ $TP_PORT ]] && SHARE_METHOD=redsocks
# if user choose to make DHCP to tell clients to use other DNS, we don't have to serve DNS
[[ $DHCP_DNS != 'gateway' && $DHCP_DNS6 != 'gateway' ]] && dnsmasq_NO_DNS=1