* luci/libs: fixed big endian in Hex() constructor
This commit is contained in:
parent
edccb1fc95
commit
12951a951e
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,8 @@ function Hex( hex, prefix, family, swap )
|
||||||
|
|
||||||
if swap and LITTLE_ENDIAN then
|
if swap and LITTLE_ENDIAN then
|
||||||
for i = #hex, 1, -2 do tmp = tmp .. hex:sub( i - 1, i ) end
|
for i = #hex, 1, -2 do tmp = tmp .. hex:sub( i - 1, i ) end
|
||||||
|
else
|
||||||
|
tmp = tmp .. hex
|
||||||
end
|
end
|
||||||
|
|
||||||
hex = tmp
|
hex = tmp
|
||||||
|
|
Loading…
Reference in a new issue