Software /
code /
prosody
Comparison
plugins/mod_s2s/s2sout.lib.lua @ 4923:760a1f367f02
mod_s2s: Remove check for socket.tcp6()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 29 May 2012 18:04:29 +0200 |
parent | 4922:d1fdc545f8b2 |
child | 4957:1722a6bea115 |
comparison
equal
deleted
inserted
replaced
4922:d1fdc545f8b2 | 4923:760a1f367f02 |
---|---|
280 | 280 |
281 local conn, handler; | 281 local conn, handler; |
282 if connect_host.proto == "IPv4" then | 282 if connect_host.proto == "IPv4" then |
283 conn, handler = socket.tcp(); | 283 conn, handler = socket.tcp(); |
284 else | 284 else |
285 if not socket.tcp6 then | |
286 log("warn", "Could not connect to "..to_host..". Your version of lua-socket does not support IPv6"); | |
287 return false, "no-ipv6"; | |
288 end | |
289 conn, handler = socket.tcp6(); | 285 conn, handler = socket.tcp6(); |
290 end | 286 end |
291 | 287 |
292 if not conn then | 288 if not conn then |
293 log("warn", "Failed to create outgoing connection, system error: %s", handler); | 289 log("warn", "Failed to create outgoing connection, system error: %s", handler); |