]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Create outgoing connections from our own known IP.
authorTimo Sirainen <tss@iki.fi>
Wed, 19 May 2010 15:46:06 +0000 (17:46 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 May 2010 15:46:06 +0000 (17:46 +0200)
--HG--
branch : HEAD

src/director/director.c

index 67ce78a558c062f48aa8795a0fcc9e29ceb927a0..00171028d6d863ca2be84a88d0e09032e25be0ca 100644 (file)
@@ -97,7 +97,7 @@ int director_connect_host(struct director *dir, struct director_host *host)
                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);