|
|
@ -119,10 +119,10 @@ jq_printvmess() { |
|
|
|
for CLINTIDX in $( seq 0 $CLTLEN ); do |
|
|
|
for CLINTIDX in $( seq 0 $CLTLEN ); do |
|
|
|
local EMAIL=$(echo $IN | jq 'if .settings.clients['${CLINTIDX}'].email then .settings.clients['${CLINTIDX}'].email else "DEFAULT" end') |
|
|
|
local EMAIL=$(echo $IN | jq 'if .settings.clients['${CLINTIDX}'].email then .settings.clients['${CLINTIDX}'].email else "DEFAULT" end') |
|
|
|
local _ps="${_MAKPREFIX}${ADDRESS}/${_NETTRIM}" |
|
|
|
local _ps="${_MAKPREFIX}${ADDRESS}/${_NETTRIM}" |
|
|
|
_green "${EMAIL//\"/} -- ${_ps}" |
|
|
|
|
|
|
|
local _VMESS=$(echo "vmess://"$(echo $IN | jq -c '{"v":"2","ps":"'${_ps}'","add":"'${ADDRESS}'","port":.port,"id":.settings.clients['${CLINTIDX}'].id,"aid":.settings.clients['${CLINTIDX}'].alterId,"net":.streamSettings.network,"type":'${_TYPE}',"host":'${_HOST}',"path":'${_PATH}',"tls":'${_TLS}'}' | base64 -w0)) |
|
|
|
local _VMESS=$(echo "vmess://"$(echo $IN | jq -c '{"v":"2","ps":"'${_ps}'","add":"'${ADDRESS}'","port":.port,"id":.settings.clients['${CLINTIDX}'].id,"aid":.settings.clients['${CLINTIDX}'].alterId,"net":.streamSettings.network,"type":'${_TYPE}',"host":'${_HOST}',"path":'${_PATH}',"tls":'${_TLS}'}' | base64 -w0)) |
|
|
|
|
|
|
|
_green "VMESS链接(v2rayN/v2rayNG): ${EMAIL//\"/}" |
|
|
|
echo ${_VMESS} |
|
|
|
echo ${_VMESS} |
|
|
|
_green "二维码链接:(v2rayN/v2rayNG)" |
|
|
|
_green "二维码链接【浏览器打开】(v2rayN/v2rayNG)" |
|
|
|
echo "https://233boy.github.io/tools/qr.html#${_VMESS}" |
|
|
|
echo "https://233boy.github.io/tools/qr.html#${_VMESS}" |
|
|
|
echo |
|
|
|
echo |
|
|
|
done |
|
|
|
done |
|
|
|