Skip to content

Commit

Permalink
自动生成uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed Aug 27, 2024
1 parent f37a8e1 commit b99ca2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.out
*.js
a.*
*.swp
vmess/node_modules
vmess/list
vmess/cloudflared
Expand Down
8 changes: 4 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ stopVmess(){

createVlesConfig(){

read -p "请输入UUID:" uuid
#read -p "请输入UUID:" uuid
read -p "请输入PORT:" port

cat > vless.json <<EOF
{
"UUID":"$uuid",
"UUID":"$(uuidgen -r)",
"PORT":$port
}
Expand Down Expand Up @@ -161,7 +161,7 @@ configVless(){

createVmesConfig(){
read -p "请输入vmess代理端口:" vmport
read -p "请输入uuid:" uuid
# read -p "请输入uuid:" uuid
read -p "请输入WSPATH,默认是[serv00]" wspath
wspath=${wspath:-serv00}

Expand All @@ -171,7 +171,7 @@ createVmesConfig(){
cat > vmess.json <<EOF
{
"VMPORT": $vmport,
"UUID": "$uuid",
"UUID": "$(uuidgen -r)",
"WSPATH": "$wspath",
"ARGO_AUTH": "${token:-null}",
"ARGO_DOMAIN": "${domain:-null}"
Expand Down

0 comments on commit b99ca2e

Please sign in to comment.