fix hy2 tls*
This commit is contained in:
@@ -75,7 +75,7 @@ Usage: sing-box [options]... [args]...
|
|||||||
port [name] [port | auto] 更改端口
|
port [name] [port | auto] 更改端口
|
||||||
path [name] [path | auto] 更改路径
|
path [name] [path | auto] 更改路径
|
||||||
passwd [name] [password | auto] 更改密码
|
passwd [name] [password | auto] 更改密码
|
||||||
key [name] [Private key | atuo] [Public key] 更改密钥
|
key [name] [Private key | auto] [Public key] 更改密钥
|
||||||
method [name] [method | auto] 更改加密方式
|
method [name] [method | auto] 更改加密方式
|
||||||
sni [name] [ ip | domain] 更改 serverName
|
sni [name] [ ip | domain] 更改 serverName
|
||||||
new [name] [...] 更改协议
|
new [name] [...] 更改协议
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
args=$@
|
args=$@
|
||||||
is_sh_ver=v1.16
|
is_sh_ver=v1.17
|
||||||
|
|
||||||
. /etc/sing-box/sh/src/init.sh
|
. /etc/sing-box/sh/src/init.sh
|
||||||
+7
-5
@@ -1413,20 +1413,22 @@ info() {
|
|||||||
is_insecure=1
|
is_insecure=1
|
||||||
is_can_change=(0 1 4)
|
is_can_change=(0 1 4)
|
||||||
is_info_show=(0 1 2 10 4 8 20)
|
is_info_show=(0 1 2 10 4 8 20)
|
||||||
is_url="$is_protocol://$password@$is_addr:$port?type=tcp&security=tls&allowInsecure=1#233boy-$net-$is_addr"
|
is_url="$is_protocol://$password@$is_addr:$port?type=tcp&security=tls&insecure=1&allowInsecure=1#233boy-$net-$is_addr"
|
||||||
is_info_str=($is_protocol $is_addr $port $password tcp tls true)
|
is_info_str=($is_protocol $is_addr $port $password tcp tls true)
|
||||||
;;
|
;;
|
||||||
hy*)
|
hy*)
|
||||||
is_can_change=(0 1 4)
|
is_can_change=(0 1 4)
|
||||||
is_info_show=(0 1 2 10 8 9 20)
|
is_info_show=(0 1 2 10 8 9 20)
|
||||||
is_url="$is_protocol://$password@$is_addr:$port?alpn=h3&insecure=1#233boy-$net-$is_addr"
|
# fix xray core for client use.
|
||||||
is_info_str=($is_protocol $is_addr $port $password tls h3 true)
|
is_sha256=$(openssl x509 -noout -fingerprint -sha256 -in $is_core_dir/bin/tls.cer | sed 's/.*=//;s/://g')
|
||||||
|
is_url="$is_protocol://$password@$is_addr:$port?alpn=h3&insecure=1&allowInsecure=1&pinSHA256=$is_sha256#233boy-$net-$is_addr"
|
||||||
|
is_info_str=($is_protocol $is_addr $port $password tls h3 "true (设置, 固定证书>证书指纹(SHA-256): $is_sha256)")
|
||||||
;;
|
;;
|
||||||
tuic)
|
tuic)
|
||||||
is_insecure=1
|
is_insecure=1
|
||||||
is_can_change=(0 1 4 5)
|
is_can_change=(0 1 4 5)
|
||||||
is_info_show=(0 1 2 3 10 8 9 20 21)
|
is_info_show=(0 1 2 3 10 8 9 20 21)
|
||||||
is_url="$is_protocol://$uuid:$password@$is_addr:$port?alpn=h3&allow_insecure=1&congestion_control=bbr#233boy-$net-$is_addr"
|
is_url="$is_protocol://$uuid:$password@$is_addr:$port?alpn=h3&insecure=1&allowInsecure=1&congestion_control=bbr#233boy-$net-$is_addr"
|
||||||
is_info_str=($is_protocol $is_addr $port $uuid $password tls h3 true bbr)
|
is_info_str=($is_protocol $is_addr $port $uuid $password tls h3 true bbr)
|
||||||
;;
|
;;
|
||||||
reality)
|
reality)
|
||||||
@@ -1453,7 +1455,7 @@ info() {
|
|||||||
is_insecure=1
|
is_insecure=1
|
||||||
is_info_show=(0 1 2 10 8 20)
|
is_info_show=(0 1 2 10 8 20)
|
||||||
is_info_str=($is_protocol $is_addr $port $password tls true)
|
is_info_str=($is_protocol $is_addr $port $password tls true)
|
||||||
is_url="anytls://$password@$is_addr:$port?allowInsecure=1#233boy-$net-$is_addr"
|
is_url="anytls://$password@$is_addr:$port?insecure=1&allowInsecure=1#233boy-$net-$is_addr"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
direct)
|
direct)
|
||||||
|
|||||||
Reference in New Issue
Block a user