diff --git a/argox.sh b/argox.sh index 32abb09..f8552b5 100644 --- a/argox.sh +++ b/argox.sh @@ -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\": \"\" }" @@ -779,4 +779,4 @@ check_dependencies check_system_ip check_install menu_setting -[ -z "$VARIABLE_FILE" ] && menu || ACTION[1] \ No newline at end of file +[ -z "$VARIABLE_FILE" ] && menu || ACTION[1]