diff options
author | Martin Matuska <mm@FreeBSD.org> | 2008-04-30 11:27:21 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2008-04-30 11:27:21 +0000 |
commit | 7d2771bf1abc63050bb0aa638f1895275a43a4ee (patch) | |
tree | 4d58c7b9e5231a0a488821cbd90899a97221326e /net-im/jabber/files/patch-jabberd-mio.cc | |
parent | - s/PORTREVSION/PORTREVISION/ (diff) |
- fix IPv6 support [1]
- remove autodetection of MySQL and PostgreSQL if not selected
- bump PORTREVISION
PR: ports/123253 [1]
Submitted by: Ruben van Staveren <ruben@verweg.com>
Approved by: mm (maintainer)
Diffstat (limited to '')
-rw-r--r-- | net-im/jabber/files/patch-jabberd-mio.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-im/jabber/files/patch-jabberd-mio.cc b/net-im/jabber/files/patch-jabberd-mio.cc new file mode 100644 index 000000000000..2deabd342a89 --- /dev/null +++ b/net-im/jabber/files/patch-jabberd-mio.cc @@ -0,0 +1,17 @@ +--- jabberd/mio.cc.orig 2008-04-29 18:54:19.000000000 +0200 ++++ jabberd/mio.cc 2008-04-29 19:00:45.000000000 +0200 +@@ -673,11 +673,14 @@ + sa.sin6_flowinfo = 0; + + inet_pton(AF_INET6, addr_str, &sa.sin6_addr); ++ flag = 0; ++ setsockopt(newm->fd, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&flag, sizeof(flag)); + #else + struct sockaddr_in sa; + sa.sin_family = AF_INET; + sa.sin_port = 0; + inet_aton(xmlnode_get_data(xmlnode_get_list_item(xmlnode_get_tags(greymatter__, "io/bind", namespaces, temp_pool), 0)), &sa.sin_addr); ++ + #endif + bind(newm->fd, (struct sockaddr*)&sa, sizeof(sa)); + } |