ratelimit: SSIDs with spaces failed to be configured

Fixes: WIFI-12421
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-03-23 07:39:11 +01:00
parent abcf6dd1fd
commit 3da1530926

View File

@@ -10,7 +10,7 @@ add_rate() {
config_get ssid "$cfg" ssid
config_get ingress "$cfg" ingress
config_get egress "$cfg" egress
ubus call ratelimit defaults_set '{"name": "'$ssid'", "rate_ingress": "'$ingress'mbit", "rate_egress": "'$egress'mbit" }'
ubus call ratelimit defaults_set "{\"name\": \"$ssid\", \"rate_ingress\": \""$ingress"mbit\", \"rate_egress\": \""$egress"mbit\" }"
}
reload_service() {