Displaying 1 result from an estimated 1 matches for "doveadm_tcp_connect".
2019 Jan 04
1
Feature request: client bind address for replication
...*doveadm_username;
const char *doveadm_password;
const char *doveadm_allowed_commands;
--- dovecot-2.2.36/src/doveadm/doveadm-util.c 2018-04-30 15:52:05.000000000 +0200
+++ dovecot-2.2.36-new/src/doveadm/doveadm-util.c 2019-01-04 15:26:09.326903786 +0100
@@ -100,19 +100,29 @@
}
static int
-doveadm_tcp_connect_port(const char *host, in_port_t port)
+doveadm_tcp_connect_port(const char *host, in_port_t port, char * my_ip)
{
struct ip_addr *ips;
unsigned int ips_count;
int ret, fd;
-
+ struct ip_addr my_net_ip;
+ int use_my_ip = 0;
+ if (strcmp(my_ip,"") == 0) {
+ i_i...