diff --git a/files/usr/lib/lua/aredn/utils.lua b/files/usr/lib/lua/aredn/utils.lua index ba59e977..10889003 100755 --- a/files/usr/lib/lua/aredn/utils.lua +++ b/files/usr/lib/lua/aredn/utils.lua @@ -211,7 +211,7 @@ end -- get IP from CIDR (strip network) function ipFromCIDR(ip) - return string.match(ip,"(.*)/.-") + return string.match(ip,"(%d+%.%d+%.%d+%.%d+)") end -- strips newline from a string