Browse Source

nft-qos: fix monitor duplicates

nft command syntax is incorrect

rearrange parameter order

Signed-off-by: Imran Khan <gururug@gmail.com>
lilik-openwrt-22.03
Imran Khan 2 years ago
committed by Rosen Penev
parent
commit
4f4f66fd17
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/nft-qos/files/lib/monitor.sh

+ 1
- 1
net/nft-qos/files/lib/monitor.sh View File

@ -6,7 +6,7 @@
. /lib/nft-qos/core.sh
qosdef_monitor_get_ip_handle() { # <family> <chain> <ip>
echo $(nft list chain $1 nft-qos-monitor $2 -a 2>/dev/null | grep $3 | awk '{print $11}')
echo $(nft -a list chain $1 nft-qos-monitor $2 2>/dev/null | grep $3 | awk '{print $11}')
}
qosdef_monitor_add() { # <mac> <ip> <hostname>


Loading…
Cancel
Save