aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2011-09-05 20:14:19 +0800
committerale <ale@FreeBSD.org>2011-09-05 20:14:19 +0800
commita5a46df384d8531ca9b8daa4981a36f00193dac8 (patch)
tree491509726b92a256ec646e78bacb90816d308d93 /dns
parent72ff9a508f26bbb1bae444ac1cdd128189139366 (diff)
downloadfreebsd-ports-gnome-a5a46df384d8531ca9b8daa4981a36f00193dac8.tar.gz
freebsd-ports-gnome-a5a46df384d8531ca9b8daa4981a36f00193dac8.tar.zst
freebsd-ports-gnome-a5a46df384d8531ca9b8daa4981a36f00193dac8.zip
Fix IPv6 support.
PR: ports/160344 Submitted by: Viktor Gal <wiking@maeth.com>
Diffstat (limited to 'dns')
-rw-r--r--dns/mydns/Makefile2
-rw-r--r--dns/mydns/files/patch-src_mydns_listen.c20
2 files changed, 21 insertions, 1 deletions
diff --git a/dns/mydns/Makefile b/dns/mydns/Makefile
index 159784724754..565c27ad5ecc 100644
--- a/dns/mydns/Makefile
+++ b/dns/mydns/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mydns
PORTVERSION= 1.1.0
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= dns databases
MASTER_SITES= http://mydns.bboy.net/download/
diff --git a/dns/mydns/files/patch-src_mydns_listen.c b/dns/mydns/files/patch-src_mydns_listen.c
new file mode 100644
index 000000000000..247bc04c7fd0
--- /dev/null
+++ b/dns/mydns/files/patch-src_mydns_listen.c
@@ -0,0 +1,20 @@
+--- src/mydns/listen.c.orig 2011-09-05 14:11:54.000000000 +0200
++++ src/mydns/listen.c 2011-09-05 14:13:17.000000000 +0200
+@@ -310,7 +310,7 @@
+ #if HAVE_IPV6
+ case AF_INET6:
+ memcpy(&addr6, &((struct sockaddr_in6 *)&ifr->ifr_addr)->sin6_addr, sizeof(struct in6_addr));
+- addrlist_add(AF_INET, &addr4, port);
++ addrlist_add(AF_INET, &addr6, port);
+ break;
+ #endif
+ default:
+@@ -454,7 +454,7 @@
+ if (inet_pton(AF_INET6, addr, &addr6) <= 0)
+ Warnx("%s: `%s' %s: %s", addr, desc, _("address"), _("invalid IPv6 address format"));
+ else
+- addrlist_add(AF_INET6, &addr4, port);
++ addrlist_add(AF_INET6, &addr6, port);
+ }
+ #endif
+ }