From 12951a951ed4bd326607a7caac4bc031dbe2501c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Aug 2008 01:04:52 +0000 Subject: * luci/libs: fixed big endian in Hex() constructor --- libs/core/luasrc/ip.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/core') diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index 15730dbac..ad32e27c6 100644 --- a/libs/core/luasrc/ip.lua +++ b/libs/core/luasrc/ip.lua @@ -211,6 +211,8 @@ function Hex( hex, prefix, family, swap ) if swap and LITTLE_ENDIAN then for i = #hex, 1, -2 do tmp = tmp .. hex:sub( i - 1, i ) end + else + tmp = tmp .. hex end hex = tmp -- cgit v1.2.3