freebsd-ports/mail/milter-greylist/files/patch-sync.c
Hajimu UMEMOTO 30cfeb0928 - Update to 4.4.3
- Add a site specified in milter-greylist-devel to MASTER_SITE.
- Add LICENSE.
- Appropriate configure option for the version of net-mgmt/p0f.
- Fix to be able to specify IPv6 address to syncsrcaddr.

PR:		ports/176950
Submitted by:	ume
Reviewed by:	Mikhail Tsatsenko <m.tsatsenko__at__gmail.com> (maintainer)
Approved by:	Mikhail Tsatsenko <m.tsatsenko__at__gmail.com> (maintainer)
2013-03-20 16:12:04 +00:00

17 lines
451 B
C

Index: sync.c
diff -u -p sync.c.orig sync.c
--- sync.c.orig 2010-04-17 12:19:02.000000000 +0900
+++ sync.c 2013-03-14 14:57:39.284674283 +0900
@@ -478,7 +478,11 @@ peer_connect(peer) /* peer list is read-
#ifdef AF_INET6
case AF_INET6:
SA6(res->ai_addr)->sin6_port = service;
- laddrstr = "::";
+ if (conf.c_syncsrcaddr != NULL) {
+ laddrstr = conf.c_syncsrcaddr;
+ } else {
+ laddrstr = "::";
+ }
break;
#endif
default: