Skip to content

Commit 45b0991

Browse files
committed
fix url typo and remove err log menu
1 parent 8e3265a commit 45b0991

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

sing-box.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.0
4+
is_sh_ver=v1.01
55

66
. /etc/sing-box/sh/src/init.sh

src/core.sh

+7-10
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ info_list=(
6565
"指纹 (Fingerprint)"
6666
"公钥 (Public key)"
6767
"用户名 (Username)"
68-
"跳过证书验证 (allowlnsecure)"
68+
"跳过证书验证 (allowInsecure)"
6969
"拥塞控制算法 (congestion_control)"
7070
)
7171
change_list=(
@@ -1297,7 +1297,7 @@ info() {
12971297
is_insecure=1
12981298
is_info_show+=(8 9 20)
12991299
is_info_str+=(tls h3 true)
1300-
is_quic_add=",tls:\"tls\",alpn:\"h3\"" # cant add allowlnsecure
1300+
is_quic_add=",tls:\"tls\",alpn:\"h3\"" # cant add allowInsecure
13011301
}
13021302
is_vmess_url=$(jq -c "{v:2,ps:\"233boy-${net}-$is_addr\",add:\"$is_addr\",port:\"$port\",id:\"$uuid\",aid:\"0\",net:\"$net\",type:\"$is_type\"$is_quic_add}" <<<{})
13031303
is_url=vmess://$(echo -n $is_vmess_url | base64 -w 0)
@@ -1313,7 +1313,7 @@ info() {
13131313
is_insecure=1
13141314
is_can_change=(0 1 4)
13151315
is_info_show=(0 1 2 10 4 8 20)
1316-
is_url="$is_protocol://$password@$is_addr:$port?type=tcp&security=tls&allowlnsecure=1#233boy-$net-$is_addr"
1316+
is_url="$is_protocol://$password@$is_addr:$port?type=tcp&security=tls&allowInsecure=1#233boy-$net-$is_addr"
13171317
is_info_str=($is_protocol $is_addr $port $password tcp tls true)
13181318
;;
13191319
hy*)
@@ -1370,7 +1370,7 @@ info() {
13701370
msg "------------- ${info_list[12]} -------------"
13711371
msg "\e[4;${is_color}m${is_url}\e[0m"
13721372
[[ $is_insecure ]] && {
1373-
warn "某些客户端如(V2rayN 等)导入URL需手动将: 跳过证书验证(allowlnsecure) 设置为 true, 或打开: 允许不安全的连接"
1373+
warn "某些客户端如(V2rayN 等)导入URL需手动将: 跳过证书验证(allowInsecure) 设置为 true, 或打开: 允许不安全的连接"
13741374
}
13751375
fi
13761376
if [[ $is_no_auto_tls ]]; then
@@ -1516,7 +1516,7 @@ is_main_menu() {
15161516
show_help
15171517
;;
15181518
9)
1519-
ask list is_do_other "启用BBR 查看日志 查看错误日志 测试运行 重装脚本 设置DNS"
1519+
ask list is_do_other "启用BBR 查看日志 测试运行 重装脚本 设置DNS"
15201520
case $REPLY in
15211521
1)
15221522
load bbr.sh
@@ -1526,15 +1526,12 @@ is_main_menu() {
15261526
get log
15271527
;;
15281528
3)
1529-
get logerr
1530-
;;
1531-
4)
15321529
get test-run
15331530
;;
1534-
5)
1531+
4)
15351532
get reinstall
15361533
;;
1537-
6)
1534+
5)
15381535
load dns.sh
15391536
dns_set
15401537
;;

0 commit comments

Comments
 (0)