From 75ab5f751588bf8de41bf907089f4e8977463d3c Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 20 Apr 2023 19:42:34 +0300 Subject: lws: routing fixes --- misc/openwrt/setup-routing.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'misc/openwrt/setup-routing.sh') 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) -- cgit v1.2.3