forked from buzzhub/lsyupdate
modified: lsy-frpc/data/lsyfrpc/check_config.sh
This commit is contained in:
parent
61a57a9604
commit
c60b3b23f0
@ -20,7 +20,8 @@ function get_cloud_config() {
|
||||
-H 'Authorization: Basic NTI0NzgxNTctMjY1Zi00ZGNjLWE0NDMtODE0YzJhMDMxYjhjOmM2ZDI3Nzc1LTJhMDgtNDkyZS1iMTExLTg5YWQzZDY5ZTliMA==' \
|
||||
-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