Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bfff42a4a6 |
14
README.md
14
README.md
@@ -26,6 +26,20 @@
|
|||||||
- 一键更改 (端口/UUID/密码/域名/路径/加密方式/SNI/动态端口/等...)
|
- 一键更改 (端口/UUID/密码/域名/路径/加密方式/SNI/动态端口/等...)
|
||||||
- 还有更多...
|
- 还有更多...
|
||||||
|
|
||||||
|
# 设计理念
|
||||||
|
|
||||||
|
设计理念为:**高效率,超快速,极易用**
|
||||||
|
|
||||||
|
脚本基于作者的自身使用需求,以 **多配置同时运行** 为核心设计
|
||||||
|
|
||||||
|
并且专门优化了,添加、更改、查看、删除、这四项常用功能
|
||||||
|
|
||||||
|
你只需要一条命令即可完成 添加、更改、查看、删除、等操作
|
||||||
|
|
||||||
|
例如,添加一个配置仅需不到 1 秒!瞬间完成添加!其他操作亦是如此!
|
||||||
|
|
||||||
|
脚本的参数非常高效率并且超级易用,请掌握参数的使用
|
||||||
|
|
||||||
# 脚本说明
|
# 脚本说明
|
||||||
|
|
||||||
[V2Ray 一键安装脚本](https://github.com/233boy/v2ray/wiki/V2Ray%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC)
|
[V2Ray 一键安装脚本](https://github.com/233boy/v2ray/wiki/V2Ray%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC)
|
||||||
|
@@ -1435,7 +1435,7 @@ info() {
|
|||||||
is_can_change=(0 1 5 7)
|
is_can_change=(0 1 5 7)
|
||||||
is_info_show=(0 1 2 3 4 5)
|
is_info_show=(0 1 2 3 4 5)
|
||||||
is_vmess_url=$(jq -c '{v:2,ps:'\"233boy-${net}-$is_addr\"',add:'\"$is_addr\"',port:'\"$port\"',id:'\"$uuid\"',net:'\"$net\"',type:'\"$header_type\"',path:'\"$kcp_seed\"'}' <<<{})
|
is_vmess_url=$(jq -c '{v:2,ps:'\"233boy-${net}-$is_addr\"',add:'\"$is_addr\"',port:'\"$port\"',id:'\"$uuid\"',net:'\"$net\"',type:'\"$header_type\"',path:'\"$kcp_seed\"'}' <<<{})
|
||||||
is_url=vmess://$(base64 -w 0 <<<$is_vmess_url)
|
is_url=vmess://$(echo -n $is_vmess_url | base64 -w 0)
|
||||||
is_tmp_port=$port
|
is_tmp_port=$port
|
||||||
[[ $is_dynamic_port ]] && {
|
[[ $is_dynamic_port ]] && {
|
||||||
is_can_change+=(12)
|
is_can_change+=(12)
|
||||||
@@ -1450,7 +1450,7 @@ info() {
|
|||||||
ss)
|
ss)
|
||||||
is_can_change=(0 1 4 6)
|
is_can_change=(0 1 4 6)
|
||||||
is_info_show=(0 1 2 10 11)
|
is_info_show=(0 1 2 10 11)
|
||||||
is_url="ss://$(base64 -w 0 <<<"${ss_method}:${ss_password}")@${is_addr}:${port}#233boy-ss-${is_addr}"
|
is_url="ss://$(echo -n ${ss_method}:${ss_password} | base64 -w 0)@${is_addr}:${port}#233boy-ss-${is_addr}"
|
||||||
is_info_str=($is_protocol $is_addr $port $ss_password $ss_method)
|
is_info_str=($is_protocol $is_addr $port $ss_password $ss_method)
|
||||||
;;
|
;;
|
||||||
ws | h2 | grpc)
|
ws | h2 | grpc)
|
||||||
@@ -1464,7 +1464,7 @@ info() {
|
|||||||
}
|
}
|
||||||
[[ $is_protocol == 'vmess' ]] && {
|
[[ $is_protocol == 'vmess' ]] && {
|
||||||
is_vmess_url=$(jq -c '{v:2,ps:'\"233boy-$host\"',add:'\"$is_addr\"',port:'\"443\"',id:'\"$uuid\"',net:'\"$net\"',host:'\"$host\"',path:'\"$path\"',tls:'\"tls\"'}' <<<{})
|
is_vmess_url=$(jq -c '{v:2,ps:'\"233boy-$host\"',add:'\"$is_addr\"',port:'\"443\"',id:'\"$uuid\"',net:'\"$net\"',host:'\"$host\"',path:'\"$path\"',tls:'\"tls\"'}' <<<{})
|
||||||
is_url=vmess://$(base64 -w 0 <<<$is_vmess_url)
|
is_url=vmess://$(echo -n $is_vmess_url | base64 -w 0)
|
||||||
} || {
|
} || {
|
||||||
[[ $is_trojan ]] && {
|
[[ $is_trojan ]] && {
|
||||||
uuid=$trojan_password
|
uuid=$trojan_password
|
||||||
@@ -1493,7 +1493,7 @@ info() {
|
|||||||
is_can_change=(0 1 15 4)
|
is_can_change=(0 1 15 4)
|
||||||
is_info_show=(0 1 2 19 10)
|
is_info_show=(0 1 2 19 10)
|
||||||
is_info_str=($is_protocol $is_addr $port $is_socks_user $is_socks_pass)
|
is_info_str=($is_protocol $is_addr $port $is_socks_user $is_socks_pass)
|
||||||
is_url="socks://$(base64 -w 0 <<<"${is_socks_user}:${is_socks_pass}")@${is_addr}:${port}#233boy-socks-${is_addr}"
|
is_url="socks://$(echo -n ${is_socks_user}:${is_socks_pass} | base64 -w 0)@${is_addr}:${port}#233boy-socks-${is_addr}"
|
||||||
;;
|
;;
|
||||||
http)
|
http)
|
||||||
is_can_change=(0 1)
|
is_can_change=(0 1)
|
||||||
@@ -1610,6 +1610,7 @@ update() {
|
|||||||
fi
|
fi
|
||||||
download $is_update_name $is_new_ver
|
download $is_update_name $is_new_ver
|
||||||
msg "更新成功, 当前 $is_show_name 版本: $(_green $is_new_ver)\n"
|
msg "更新成功, 当前 $is_show_name 版本: $(_green $is_new_ver)\n"
|
||||||
|
msg "$(_green 请查看更新说明: https://github.com/$is_sh_repo/releases/tag/$is_new_ver)\n"
|
||||||
manage restart $is_update_name &
|
manage restart $is_update_name &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user