libs/core/ip: fix prefix length handling in Hex() constructor
[project/luci.git] / libs / core / luasrc / ip.lua
index bba701a..c5ebfca 100644 (file)
@@ -314,7 +314,7 @@ function Hex( hex, prefix, family, swap )
                end
        end
 
-       return __bless({ family, data, len })
+       return __bless({ family, data, prefix })
 end