mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
fix for Lua 5.3 built without number / string conversion
This kind of Lua could be built with this command: ``` hererocks --lua 5.3 --cflags="-DLUA_NOCVTN2S -DLUA_NOCVTS2N" ```
This commit is contained in:
parent
29e5ad610a
commit
16bb548746
@ -193,7 +193,7 @@ function _M.build(parsed)
|
|||||||
if string.find(authority, ":") then -- IPv6?
|
if string.find(authority, ":") then -- IPv6?
|
||||||
authority = "[" .. authority .. "]"
|
authority = "[" .. authority .. "]"
|
||||||
end
|
end
|
||||||
if parsed.port then authority = authority .. ":" .. parsed.port end
|
if parsed.port then authority = authority .. ":" .. base.tostring(parsed.port) end
|
||||||
local userinfo = parsed.userinfo
|
local userinfo = parsed.userinfo
|
||||||
if parsed.user then
|
if parsed.user then
|
||||||
userinfo = parsed.user
|
userinfo = parsed.user
|
||||||
|
Loading…
Reference in New Issue
Block a user