dovecot-2.0: director: Create outgoing connections from our own ...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 19 18:46:09 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/098f517e902c
changeset: 11338:098f517e902c
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 19 17:46:06 2010 +0200
description:
director: Create outgoing connections from our own known IP.

diffstat:

 src/director/director.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4ec22f3bfd9f -r 098f517e902c src/director/director.c
--- a/src/director/director.c	Wed May 19 17:44:56 2010 +0200
+++ b/src/director/director.c	Wed May 19 17:46:06 2010 +0200
@@ -97,7 +97,7 @@
 		return -1;
 	}
 
-	fd = net_connect_ip(&host->ip, host->port, NULL);
+	fd = net_connect_ip(&host->ip, host->port, &dir->self_ip);
 	if (fd == -1) {
 		host->last_failed = ioloop_time;
 		i_error("connect(%s) failed: %m", host->name);


More information about the dovecot-cvs mailing list