mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
ratelimit: fix syntax error during parsing of wlanX-Y
Fixes: WIFI-11965 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
case $2 in
|
case $2 in
|
||||||
AP-STA-CONNECTED)
|
AP-STA-CONNECTED)
|
||||||
[ $4 = 0 -o $5 = 0 ] && {
|
[ $4 = 0 -o $5 = 0 ] && {
|
||||||
ubus call ratelimit client_set '{"device": "'$1'", "address": "'$3'", "defaults": "'$(ubus call wifi iface | jsonfilter -e "@.$1.ssid")'" }'
|
ubus call ratelimit client_set '{"device": "'$1'", "address": "'$3'", "defaults": "'$(ubus call wifi iface | jsonfilter -e "@['$1'].ssid")'" }'
|
||||||
logger ratelimit addclient $1 $3 $ssid
|
logger ratelimit addclient $1 $3 $ssid
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user