From 62433b88f37fa41c8f226b4983505579be39a927 Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Sun, 28 May 2023 11:26:31 +0800 Subject: [PATCH] URL add aid 0 --- src/core.sh | 4 ++-- v2ray.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core.sh b/src/core.sh index c40320f..9d93041 100644 --- a/src/core.sh +++ b/src/core.sh @@ -1435,7 +1435,7 @@ info() { tcp | kcp | quic) is_can_change=(0 1 5 7) 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\"',aid:"0",net:'\"$net\"',type:'\"$header_type\"',path:'\"$kcp_seed\"'}' <<<{}) is_url=vmess://$(echo -n $is_vmess_url | base64 -w 0) is_tmp_port=$port [[ $is_dynamic_port ]] && { @@ -1464,7 +1464,7 @@ info() { is_url_path=serviceName } [[ $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\"',aid:"0",net:'\"$net\"',host:'\"$host\"',path:'\"$path\"',tls:'\"tls\"'}' <<<{}) is_url=vmess://$(echo -n $is_vmess_url | base64 -w 0) } || { [[ $is_trojan ]] && { diff --git a/v2ray.sh b/v2ray.sh index 2e452f4..357f161 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v4.07 +is_sh_ver=v4.08 . /etc/v2ray/sh/src/init.sh