Skip to content

Commit

Permalink
Merge pull request hq450#828 from Xiaoyang-Huang/master
Browse files Browse the repository at this point in the history
make ss server IP as default value for UdpSpeed and Udp2raw's server IP
  • Loading branch information
hq450 authored Apr 6, 2020
2 parents 3e100fc + 0c09403 commit eff13e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions fancyss_arm384/shadowsocks/ss/ssconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ start_speeder() {
if [ "$ss_basic_udp_boost_enable" == "1" ]; then
if [ "$ss_basic_udp_software" == "1" ]; then
echo_date 开启UDPspeederV1进程.
[ -z "$ss_basic_udpv1_rserver" ] && ss_basic_udpv1_rserver="$ss_basic_server"
[ -z "$ss_basic_udpv1_rserver" ] && ss_basic_udpv1_rserver="$ss_basic_server_ip"
[ -n "$ss_basic_udpv1_duplicate_time" ] && duplicate_time="-t $ss_basic_udpv1_duplicate_time" || duplicate_time=""
[ -n "$ss_basic_udpv1_jitter" ] && jitter="-j $ss_basic_udpv1_jitter" || jitter=""
[ -n "$ss_basic_udpv1_report" ] && report="--report $ss_basic_udpv1_report" || report=""
Expand All @@ -1046,7 +1046,7 @@ start_speeder() {
fi
elif [ "$ss_basic_udp_software" == "2" ]; then
echo_date 开启UDPspeederV2进程.
[ -z "$ss_basic_udpv2_rserver" ] && ss_basic_udpv2_rserver="$ss_basic_server"
[ -z "$ss_basic_udpv2_rserver" ] && ss_basic_udpv2_rserver="$ss_basic_server_ip"
[ "$ss_basic_udpv2_disableobscure" == "1" ] && disable_obscure="--disable-obscure" || disable_obscure=""
[ "$ss_basic_udpv2_disablechecksum" == "1" ] && disable_checksum="--disable-checksum" || disable_checksum=""
[ -n "$ss_basic_udpv2_timeout" ] && timeout="--timeout $ss_basic_udpv2_timeout" || timeout=""
Expand All @@ -1073,7 +1073,7 @@ start_speeder() {
#开启udp2raw
if [ "$ss_basic_udp2raw_boost_enable" == "1" ]; then
echo_date 开启UDP2raw进程.
[ -z "$ss_basic_udp2raw_rserver" ] && ss_basic_udp2raw_rserver="$ss_basic_server"
[ -z "$ss_basic_udp2raw_rserver" ] && ss_basic_udp2raw_rserver="$ss_basic_server_ip"
[ "$ss_basic_udp2raw_a" == "1" ] && UD2RAW_EX1="-a" || UD2RAW_EX1=""
[ "$ss_basic_udp2raw_keeprule" == "1" ] && UD2RAW_EX2="--keep-rule" || UD2RAW_EX2=""
[ -n "$ss_basic_udp2raw_lowerlevel" ] && UD2RAW_LOW="--lower-level $ss_basic_udp2raw_lowerlevel" || UD2RAW_LOW=""
Expand Down
5 changes: 3 additions & 2 deletions fancyss_hnd/shadowsocks/ss/ssconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ start_speeder() {
if [ "$ss_basic_udp_boost_enable" == "1" ]; then
if [ "$ss_basic_udp_software" == "1" ]; then
echo_date 开启UDPspeederV1进程.
[ -z "$ss_basic_udpv1_rserver" ] && ss_basic_udpv1_rserver="$ss_basic_server"
[ -z "$ss_basic_udpv1_rserver" ] && ss_basic_udpv1_rserver="$ss_basic_server_ip"
[ -n "$ss_basic_udpv1_duplicate_time" ] && duplicate_time="-t $ss_basic_udpv1_duplicate_time" || duplicate_time=""
[ -n "$ss_basic_udpv1_jitter" ] && jitter="-j $ss_basic_udpv1_jitter" || jitter=""
[ -n "$ss_basic_udpv1_report" ] && report="--report $ss_basic_udpv1_report" || report=""
Expand All @@ -1083,7 +1083,7 @@ start_speeder() {
fi
elif [ "$ss_basic_udp_software" == "2" ]; then
echo_date 开启UDPspeederV2进程.
[ -z "$ss_basic_udpv2_rserver" ] && ss_basic_udpv2_rserver="$ss_basic_server"
[ -z "$ss_basic_udpv2_rserver" ] && ss_basic_udpv2_rserver="$ss_basic_server_ip"
[ "$ss_basic_udpv2_disableobscure" == "1" ] && disable_obscure="--disable-obscure" || disable_obscure=""
[ "$ss_basic_udpv2_disablechecksum" == "1" ] && disable_checksum="--disable-checksum" || disable_checksum=""
[ -n "$ss_basic_udpv2_timeout" ] && timeout="--timeout $ss_basic_udpv2_timeout" || timeout=""
Expand All @@ -1110,6 +1110,7 @@ start_speeder() {
#开启udp2raw
if [ "$ss_basic_udp2raw_boost_enable" == "1" ]; then
echo_date 开启UDP2raw进程.
[ -z "$ss_basic_udp2raw_rserver" ] && ss_basic_udp2raw_rserver="$ss_basic_server_ip"
[ "$ss_basic_udp2raw_a" == "1" ] && UD2RAW_EX1="-a" || UD2RAW_EX1=""
[ "$ss_basic_udp2raw_keeprule" == "1" ] && UD2RAW_EX2="--keep-rule" || UD2RAW_EX2=""
[ -n "$ss_basic_udp2raw_lowerlevel" ] && UD2RAW_LOW="--lower-level $ss_basic_udp2raw_lowerlevel" || UD2RAW_LOW=""
Expand Down

0 comments on commit eff13e8

Please sign in to comment.