Skip to content

Commit 5c0dc91

Browse files
authored
Update install.sh
1 parent 23ad2bd commit 5c0dc91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,14 +2401,14 @@ yellow "0:返回上层"
24012401
readp "请选择【0-3】:" menu
24022402
if [ "$menu" = "1" ]; then
24032403
ins
2404-
nohup setsid /usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --gool -$sw46 >/dev/null 2>&1 & echo "$!" > /usr/local/x-ui/xuiwpphid.log
2404+
nohup setsid /usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --gool -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1 & echo "$!" > /usr/local/x-ui/xuiwpphid.log
24052405
green "申请IP中……请稍等……" && sleep 20
24062406
resv1=$(curl -s --socks5 localhost:$port icanhazip.com)
24072407
resv2=$(curl -sx socks5h://localhost:$port icanhazip.com)
24082408
if [[ -z $resv1 && -z $resv2 ]]; then
24092409
red "WARP-plus-Socks5的IP获取失败" && unins && exit
24102410
else
2411-
echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --gool -$sw46 >/dev/null 2>&1" > /usr/local/x-ui/xuiwpph.log
2411+
echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --gool -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1" > /usr/local/x-ui/xuiwpph.log
24122412
crontab -l > /tmp/crontab.tmp
24132413
sed -i '/xuiwpphid.log/d' /tmp/crontab.tmp
24142414
echo '@reboot /bin/bash -c "nohup setsid $(cat /usr/local/x-ui/xuiwpph.log 2>/dev/null) & pid=\$! && echo \$pid > /usr/local/x-ui/xuiwpphid.log"' >> /tmp/crontab.tmp
@@ -2453,14 +2453,14 @@ echo '
24532453
美国(US)
24542454
'
24552455
readp "可选择国家地区(输入末尾两个大写字母,如美国,则输入US):" guojia
2456-
nohup setsid /usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --cfon --country $guojia -$sw46 >/dev/null 2>&1 & echo "$!" > /usr/local/x-ui/xuiwpphid.log
2456+
nohup setsid /usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --cfon --country $guojia -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1 & echo "$!" > /usr/local/x-ui/xuiwpphid.log
24572457
green "申请IP中……请稍等……" && sleep 20
24582458
resv1=$(curl -s --socks5 localhost:$port icanhazip.com)
24592459
resv2=$(curl -sx socks5h://localhost:$port icanhazip.com)
24602460
if [[ -z $resv1 && -z $resv2 ]]; then
24612461
red "WARP-plus-Socks5的IP获取失败,尝试换个国家地区吧" && unins && exit
24622462
else
2463-
echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --cfon --country $guojia -$sw46 >/dev/null 2>&1" > /usr/local/x-ui/xuiwpph.log
2463+
echo "/usr/local/x-ui/xuiwpph -b 127.0.0.1:$port --cfon --country $guojia -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1" > /usr/local/x-ui/xuiwpph.log
24642464
crontab -l > /tmp/crontab.tmp
24652465
sed -i '/xuiwpphid.log/d' /tmp/crontab.tmp
24662466
echo '@reboot /bin/bash -c "nohup setsid $(cat /usr/local/x-ui/xuiwpph.log 2>/dev/null) & pid=\$! && echo \$pid > /usr/local/x-ui/xuiwpphid.log"' >> /tmp/crontab.tmp

0 commit comments

Comments
 (0)