Skip to content

Commit

Permalink
Fix a bug in export nodes list.
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarmen authored Jul 4, 2023
1 parent 4150af2 commit 6a4d9eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions argox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ export_list() {
ARGO_DOMAIN=${ARGO_DOMAIN:-"$(grep -m1 '^vless' $WORK_DIR/list | sed "s@.*host=\(.*\)&.*@\1@g")"}
fi
SERVER=${SERVER:-"$(grep -m1 '^vless' $WORK_DIR/list | sed "s/.*@\(.*\):443.*/\1/g")"}
UUID=${UUID:-"$(grep 'password' $WORK_DIR/config.json | awk -F \" 'NR==1{print $4}')"}
WS_PATH=${WS_PATH:-"$(grep -m1 'path.*vm' $WORK_DIR/config.json | sed "s@.*/\(.*\)-vm.*@\1@g")"}
UUID=${UUID:-"$(grep 'password' $WORK_DIR/inbound.json | awk -F \" 'NR==1{print $4}')"}
WS_PATH=${WS_PATH:-"$(grep -m1 'path.*vm' $WORK_DIR/inbound.json | sed "s@.*/\(.*\)-vm.*@\1@g")"}

# 生成配置文件
VMESS="{ \"v\": \"2\", \"ps\": \"ArgoX-Vm\", \"add\": \"${SERVER}\", \"port\": \"443\", \"id\": \"${UUID}\", \"aid\": \"0\", \"scy\": \"none\", \"net\": \"ws\", \"type\": \"none\", \"host\": \"${ARGO_DOMAIN}\", \"path\": \"/${WS_PATH}-vm\", \"tls\": \"tls\", \"sni\": \"${ARGO_DOMAIN}\", \"alpn\": \"\" }"
Expand Down Expand Up @@ -779,4 +779,4 @@ check_dependencies
check_system_ip
check_install
menu_setting
[ -z "$VARIABLE_FILE" ] && menu || ACTION[1]
[ -z "$VARIABLE_FILE" ] && menu || ACTION[1]

0 comments on commit 6a4d9eb

Please sign in to comment.