modified: lsy-frpc/data/lsyfrpc/check_config.sh

This commit is contained in:
zqiushi 2025-01-08 20:58:05 +08:00
parent 61a57a9604
commit c60b3b23f0

View File

@ -21,6 +21,7 @@ function get_cloud_config() {
-H 'Content-Type: application/json' \
-d "{\"mac_address\": \"$mac_address\"}")
echo "Response: $response"
cloud_port=$(echo "$response" | grep -o '"port":[0-9]*' | awk -F: '{print $2}')
if [ -n "$cloud_port" ]; then