From: Jo-Philipp Wich Date: Fri, 8 Aug 2008 01:04:52 +0000 (+0000) Subject: * luci/libs: fixed big endian in Hex() constructor X-Git-Tag: 0.8.0~500 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12951a951ed4bd326607a7caac4bc031dbe2501c;p=oweals%2Fluci.git * luci/libs: fixed big endian in Hex() constructor --- 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