mirror of
https://github.com/lune-org/lune.git
synced 2025-04-07 20:10:55 +01:00
Merge branch 'lune-org:main' into feature/sched-return
This commit is contained in:
commit
dcf560b4cf
1 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,12 @@ local handle2 = net.serve(PORT, {
|
|||
end,
|
||||
})
|
||||
|
||||
if process.os == "windows" then
|
||||
-- In Windows, client cannot directly connect to `0.0.0.0`.
|
||||
-- `0.0.0.0` is a non-routable meta-address.
|
||||
URL_EXTERNAL = "http://localhost"
|
||||
end
|
||||
|
||||
-- And any requests to that IP should succeed
|
||||
local response3 = net.request(`{URL_EXTERNAL}:{PORT}`).body
|
||||
assert(response3 ~= nil, "Invalid response from server")
|
||||
|
|
Loading…
Add table
Reference in a new issue