summaryrefslogtreecommitdiffstats
path: root/src/zabbix_proxy/servercomms.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_proxy/servercomms.c')
-rw-r--r--src/zabbix_proxy/servercomms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_proxy/servercomms.c b/src/zabbix_proxy/servercomms.c
index e0651bfa..ce98f405 100644
--- a/src/zabbix_proxy/servercomms.c
+++ b/src/zabbix_proxy/servercomms.c
@@ -36,7 +36,7 @@ int connect_to_server(zbx_sock_t *sock, int timeout)
CONFIG_SERVER_PORT,
timeout);
- if (FAIL == (res = zbx_tcp_connect(sock, CONFIG_SERVER, CONFIG_SERVER_PORT, timeout)))
+ if (FAIL == (res = zbx_tcp_connect(sock, CONFIG_SOURCE_IP, CONFIG_SERVER, CONFIG_SERVER_PORT, timeout)))
zabbix_log(LOG_LEVEL_ERR, "Unable connect to the server [%s]:%d [%s]",
CONFIG_SERVER,
CONFIG_SERVER_PORT,