From 9e9d982a1a31f9d38fd1bf3b1b2c2f7d88d00b94 Mon Sep 17 00:00:00 2001 From: 233boy Date: Sun, 13 Jan 2019 15:51:46 +0800 Subject: [PATCH] tg proxy secret add "dd" prefix --- src/mtproto.sh | 6 +++--- v2ray.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mtproto.sh b/src/mtproto.sh index 0382e64..a1f940f 100644 --- a/src/mtproto.sh +++ b/src/mtproto.sh @@ -16,7 +16,7 @@ _mtproto_info() { echo echo -e "$yellow 密钥 (Secret) = $cyan$mtproto_secret$none" echo - echo -e "$yellow Telegram 代理配置链接 = ${cyan}tg://proxy?server=${ip}&port=${mtproto_port}&secret=${mtproto_secret}$none" + echo -e "$yellow Telegram 代理配置链接 = ${cyan}https://t.me/proxy?server=${ip}&port=${mtproto_port}&secret=${mtproto_secret}$none" echo } _mtproto_main() { @@ -70,7 +70,7 @@ _mtproto_ask() { echo -e " $red大佬...你没有配置 Telegram MTProto $none...不过现在想要配置的话也是可以的 ^_^" echo echo - new_mtproto_secret=$(date | md5sum | cut -c-32) + new_mtproto_secret="dd$(date | md5sum | cut -c-30)" while :; do echo -e "是否配置 ${yellow}Telegram MTProto${none} [${magenta}Y/N$none]" read -p "$(echo -e "(默认 [${cyan}N$none]):") " new_mtproto @@ -191,7 +191,7 @@ mtproto_port_config() { } change_mtproto_secret() { - new_mtproto_secret=$(date | md5sum | cut -c-32) + new_mtproto_secret="dd$(date | md5sum | cut -c-30)" echo while :; do read -p "$(echo -e "是否更改 ${yellow}Telegram MTProto 密钥${none} [${magenta}Y/N$none]"): " y_n diff --git a/v2ray.sh b/v2ray.sh index 31fd001..96f9405 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v3.17-test" +_version="v3.18-test" cmd="apt-get"