summaryrefslogtreecommitdiff
path: root/misc/openwrt
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-04-20 19:42:34 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-04-20 19:42:34 +0300
commit75ab5f751588bf8de41bf907089f4e8977463d3c (patch)
tree20349cf21db7a9a3956d428bfc5209bf5ef07976 /misc/openwrt
parente38615c9c64e592cbea31f04bea726f5745648f7 (diff)
lws: routing fixes
Diffstat (limited to 'misc/openwrt')
-rw-r--r--misc/openwrt/setup-routing.sh8
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)