diff --git a/src/mtproto.sh b/src/mtproto.sh index 6cabb7c..2c61c3e 100644 --- a/src/mtproto.sh +++ b/src/mtproto.sh @@ -7,7 +7,7 @@ _view_mtproto_info() { } _mtproto_info() { _load status.sh - _get_status 1 + _get_status [[ -z $ip ]] && get_ip echo echo "---------- Telegram MTProto 配置信息 -------------" diff --git a/src/qr.sh b/src/qr.sh index 05469e9..0a3d285 100644 --- a/src/qr.sh +++ b/src/qr.sh @@ -1,5 +1,5 @@ _load status.sh -_get_status 1 +_get_status _qr_create() { local vmess="vmess://$(cat /etc/v2ray/vmess_qr.json | base64 -w 0)" local link="https://233boy.github.io/tools/qr.html#${vmess}" diff --git a/src/socks.sh b/src/socks.sh index 4ef05ce..fbddc6c 100644 --- a/src/socks.sh +++ b/src/socks.sh @@ -7,7 +7,7 @@ _view_socks_info() { } _socks_info() { _load status.sh - _get_status 1 + _get_status [[ -z $ip ]] && get_ip echo echo "---------- Socks 配置信息 -------------" diff --git a/src/ss-info.sh b/src/ss-info.sh index b742963..2622540 100644 --- a/src/ss-info.sh +++ b/src/ss-info.sh @@ -1,5 +1,5 @@ _load status.sh -_get_status 1 +_get_status [[ -z $ip ]] && get_ip if [[ $shadowsocks ]]; then #local ss="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#${_site}_ss_${ip}" diff --git a/src/v2ray-info.sh b/src/v2ray-info.sh index 5acb4f8..add4c9e 100644 --- a/src/v2ray-info.sh +++ b/src/v2ray-info.sh @@ -72,7 +72,7 @@ _v2_args() { _v2_info() { _load status.sh - _get_status + _get_status 1 [[ -z $ip ]] && get_ip echo echo diff --git a/v2ray.sh b/v2ray.sh index 2e7b49b..fc889b1 100755 --- a/v2ray.sh +++ b/v2ray.sh @@ -2561,7 +2561,7 @@ get_v2ray_config_qr_link() { get_v2ray_multi_vmess_URL_QR() { _load status.sh - _get_status + _get_status 1 echo "---------- V2Ray vmess URL / V2RayNG v0.4.1+ / V2RayN v2.1+ / 仅适合部分客户端 -------------" get_ip _load jqcmd.sh @@ -2575,7 +2575,7 @@ get_v2ray_multi_vmess_URL_QR() { get_v2ray_vmess_URL_link() { _load status.sh - _get_status + _get_status 1 echo echo "---------- V2Ray vmess URL / V2RayNG v0.4.1+ / V2RayN v2.1+ / 仅适合部分客户端 -------------" get_ip