Displaying 1 result from an estimated 1 matches for "my_net_ip".
2019 Jan 04
1
Feature request: client bind address for replication
...il.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_info("No doveadm_local_ip setting, local ip supplied by operating system");
+ }
+ if (net_addr2ip(my_ip, &my_net_ip)) {
+ i_error("error using doveadm_local_ip setting %s"...