diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-04-20 19:42:34 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-04-20 19:42:34 +0300 |
commit | 75ab5f751588bf8de41bf907089f4e8977463d3c (patch) | |
tree | 20349cf21db7a9a3956d428bfc5209bf5ef07976 /misc/openwrt/setup-routing.sh | |
parent | e38615c9c64e592cbea31f04bea726f5745648f7 (diff) |
lws: routing fixes
Diffstat (limited to 'misc/openwrt/setup-routing.sh')
-rw-r--r-- | misc/openwrt/setup-routing.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/openwrt/setup-routing.sh b/misc/openwrt/setup-routing.sh index 97af514..b384541 100644 --- a/misc/openwrt/setup-routing.sh +++ b/misc/openwrt/setup-routing.sh @@ -15,11 +15,15 @@ case "$1" in ;; ipset-add) - ipset add "$2" "$3" + addr="$3" + addr="${addr/_/\/}" + ipset add "$2" "$addr" ;; ipset-del) - ipset del "$2" "$3" + addr="$3" + addr="${addr/_/\/}"s + ipset del "$2" "$addr" ;; # ipset_list) |