Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mjjonone committed Sep 2, 2023
1 parent 8264054 commit 8b23829
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion hug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ARGO_AUTH=${ARGO_AUTH:-''}
WSPATH=${WSPATH:-'argo'}
UUID=${UUID:-'de04add9-5c68-8bab-950c-08cd5320df18'}
CFIP=${CFIP:-'icook.hk'}
NAME=${NAME:-''}

if [ "$TLS" -eq 0 ]; then
NEZHA_TLS=''
Expand Down Expand Up @@ -365,8 +366,14 @@ function get_argo_domain() {
fi
}

isp=$(curl -s https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18"-"$30}' | sed -e 's/ /_/g')
ip=$(curl -s https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18}' | sed -e 's/ /_/g')
sleep 3

if [ -n "$NAME" ]; then
isp="$NAME"
else
isp="$ip"
fi

generate_links() {
argo=$(get_argo_domain)
Expand Down
9 changes: 8 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ARGO_AUTH=${ARGO_AUTH:-''}
WSPATH=${WSPATH:-'argo'}
UUID=${UUID:-'de04add9-5c68-8bab-950c-08cd5320df18'}
CFIP=${CFIP:-'icook.hk'}
NAME=${NAME:-''}

if [ "$TLS" -eq 0 ]; then
NEZHA_TLS=''
Expand Down Expand Up @@ -365,8 +366,14 @@ function get_argo_domain() {
fi
}

isp=$(curl -s https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18"-"$30}' | sed -e 's/ /_/g')
ip=$(curl -s https://speed.cloudflare.com/meta | awk -F\" '{print $26"-"$18}' | sed -e 's/ /_/g')
sleep 3

if [ -n "$NAME" ]; then
isp="$NAME"
else
isp="$ip"
fi

generate_links() {
argo=$(get_argo_domain)
Expand Down

0 comments on commit 8b23829

Please sign in to comment.