Skip to content

Commit

Permalink
Update vmess.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dafang2021 committed Sep 10, 2020
1 parent fda43f9 commit 734352a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vmess.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ibmcloud target --cf && read -p "输入你的app名称:" appname&&path=$(ibmcloud cf ssh ${appname} -c "cat app/v2ray/config.json"|grep path|sed -e 's/ //g'|sed -e 's/\path//g'|sed -e 's/\"//g'|sed -e 's/\://g'|sed -e 's/\,//g')&&id=$(ibmcloud cf ssh ${appname} -c "cat app/v2ray/config.json" |grep id|sed -e 's/ //g'|sed -e 's/\id//g'|sed -e 's/\"//g'|sed -e 's/\://g'|sed -e 's/\,//g')&&VMESSCODE=$(base64 -w 0 << EOF
{
ibmcloud target --cf && read -p "输入你的app名称:" appname&&path=$(ibmcloud cf ssh ${appname} -c "path=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)"|grep path|sed -e 's/ //g'|sed -e 's/\path//g'|sed -e 's/\"//g'|sed -e 's/\://g'|sed -e 's/\,//g')&&id=$(ibmcloud cf ssh ${appname} -c "cat app/v2ray/config.json" |grep id|sed -e 's/ //g'|sed -e 's/\id//g'|sed -e 's/\"//g'|sed -e 's/\://g'|sed -e 's/\,//g')&&VMESSCODE=$(base64 -w 0 << EOF
{path=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)
"v": "2",
"ps": "bigfang",
"add": "${appname}.us-south.cf.appdomain.cloud",
Expand Down

0 comments on commit 734352a

Please sign in to comment.