Update sb.sh
This commit is contained in:
@@ -4211,14 +4211,14 @@ yellow "0:返回上层"
|
|||||||
readp "请选择【0-3】:" menu
|
readp "请选择【0-3】:" menu
|
||||||
if [ "$menu" = "1" ]; then
|
if [ "$menu" = "1" ]; then
|
||||||
ins
|
ins
|
||||||
nohup /etc/s-box/sbwpph -b 127.0.0.1:$port --gool -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1 &
|
nohup /etc/s-box/sbwpph -b 127.0.0.1:$port -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1 &
|
||||||
green "申请IP中……请稍等……" && sleep 20
|
green "申请IP中……请稍等……" && sleep 20
|
||||||
resv1=$(curl -sm3 --socks5 localhost:$port icanhazip.com)
|
resv1=$(curl -sm3 --socks5 localhost:$port icanhazip.com)
|
||||||
resv2=$(curl -sm3 -x socks5h://localhost:$port icanhazip.com)
|
resv2=$(curl -sm3 -x socks5h://localhost:$port icanhazip.com)
|
||||||
if [[ -z $resv1 && -z $resv2 ]]; then
|
if [[ -z $resv1 && -z $resv2 ]]; then
|
||||||
red "WARP-plus-Socks5的IP获取失败" && unins && exit
|
red "WARP-plus-Socks5的IP获取失败" && unins && exit
|
||||||
else
|
else
|
||||||
echo "/etc/s-box/sbwpph -b 127.0.0.1:$port --gool -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1" > /etc/s-box/sbwpph.log
|
echo "/etc/s-box/sbwpph -b 127.0.0.1:$port -$sw46 --endpoint 162.159.192.1:2408 >/dev/null 2>&1" > /etc/s-box/sbwpph.log
|
||||||
aplws5
|
aplws5
|
||||||
green "WARP-plus-Socks5的IP获取成功,可进行Socks5代理分流"
|
green "WARP-plus-Socks5的IP获取成功,可进行Socks5代理分流"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user