forked from buzzhub/lsyupdate
modified: lsy-frpc/data/lsyfrpc/check_config.sh
This commit is contained in:
parent
61a57a9604
commit
c60b3b23f0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user