mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 16:44:23 +08:00
🤞 Sync 2026-09-30 23:44:05
This commit is contained in:
1 parent
e3fde93105
commit
44bb740ab2
206 files changed
+5736
-2799
No files matched your search
@@ -45,6 +45,7 @@ list)
|
||||
printf '"macfilter_remove":{"ip":"str"},'
|
||||
printf '"ratelimit":{"ip":"str","rate_kbit":"int","label":"str","mode":"str"},'
|
||||
printf '"ratelimit_stats":{},'
|
||||
printf '"subnets":{},'
|
||||
printf '"shape_add":{"ip":"str","rate_kbit":"int","label":"str"},'
|
||||
printf '"shape_remove":{"ip":"str","label":"str"},'
|
||||
printf '"shape_status":{"ip":"str"},'
|
||||
@@ -169,6 +170,11 @@ call)
|
||||
"$SCRIPTS/trafficctl-ratelimit-stats.sh"
|
||||
printf '}'
|
||||
;;
|
||||
subnets)
|
||||
printf '{"result":'
|
||||
"$SCRIPTS/trafficctl-subnets.sh"
|
||||
printf '}'
|
||||
;;
|
||||
shape_add)
|
||||
read -r input
|
||||
ip=$(echo "$input" | jsonfilter -e '@.ip' 2>/dev/null)
|
||||
|
||||
Reference in new issue
Block a user