tg proxy secret add "dd" prefix

test
233boy 6 years ago
parent e1d6609188
commit 9e9d982a1a
  1. 6
      src/mtproto.sh
  2. 2
      v2ray.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

@ -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"

Loading…
Cancel
Save