summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-08-08 01:04:52 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-08-08 01:04:52 +0000
commit12951a951ed4bd326607a7caac4bc031dbe2501c (patch)
tree352e6b902f696b8950367a3ac209b66799b1fa84
parentedccb1fc95d182358beea3b1b5de8d4ab91c9a69 (diff)
* luci/libs: fixed big endian in Hex() constructor
-rw-r--r--libs/core/luasrc/ip.lua2
1 files changed, 2 insertions, 0 deletions
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