From 12951a951ed4bd326607a7caac4bc031dbe2501c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 8 Aug 2008 01:04:52 +0000 Subject: [PATCH] * luci/libs: fixed big endian in Hex() constructor --- libs/core/luasrc/ip.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index 15730dbacc..ad32e27c6e 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 -- 2.30.2