diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-28 10:41:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-28 10:43:34 +0000 |
commit | b167cf490e6a48ad8284547f698959164ba218aa (patch) | |
tree | 13f62586e41d950646fa926264337a1bb0429b99 /community/lua-copas/ipv4-only.patch | |
parent | a7d7de563157612ba080e45a3ec86e5ed84af251 (diff) | |
download | aports-b167cf490e6a48ad8284547f698959164ba218aa.tar.bz2 aports-b167cf490e6a48ad8284547f698959164ba218aa.tar.xz |
community/lua-copas: force tests to only use ipv4
if localhost resolves to ipv6 address, tests will fail, so we force ipv4
Diffstat (limited to 'community/lua-copas/ipv4-only.patch')
-rw-r--r-- | community/lua-copas/ipv4-only.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/lua-copas/ipv4-only.patch b/community/lua-copas/ipv4-only.patch new file mode 100644 index 0000000000..a1b25b7c5e --- /dev/null +++ b/community/lua-copas/ipv4-only.patch @@ -0,0 +1,22 @@ +diff --git a/tests/largetransfer.lua b/tests/largetransfer.lua +index 9ada332..5b9727c 100644 +--- a/tests/largetransfer.lua ++++ b/tests/largetransfer.lua +@@ -41,7 +41,7 @@ local function runtest() + copas.sleep(0) + local skt = socket.tcp() + skt = copas.wrap(skt, cparams) +- skt:connect("localhost", 49500) ++ skt:connect("127.0.0.1", 49500) + skt:send(body) + print("Writing... 49500... Done!", socket.gettime()-start, err, #body) + skt = nil +@@ -54,7 +54,7 @@ local function runtest() + copas.sleep(0) + local skt = socket.tcp() + skt = copas.wrap(skt, cparams) +- skt:connect("localhost", 49501) ++ skt:connect("127.0.0.1", 49501) + skt:send(body) + print("Writing... 49501... Done!", socket.gettime()-start, err, #body) + skt = nil |