From f06c1cfa97f869204483eda9af72bd250e54e831 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 16 Jul 2019 17:13:07 +0200 Subject: [PATCH] cmdmon: respond from same address Enable the destination address of received messages in order to respond from the same address on multihomed hosts. --- cmdmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdmon.c b/cmdmon.c index 320bde60..9b7afe11 100644 --- a/cmdmon.c +++ b/cmdmon.c @@ -165,7 +165,7 @@ open_socket(int family) SCK_GetLoopbackIPAddress(family, &local_addr.ip_addr); local_addr.port = port; - sock_fd = SCK_OpenUdpSocket(NULL, &local_addr, 0); + sock_fd = SCK_OpenUdpSocket(NULL, &local_addr, SCK_FLAG_RX_DEST_ADDR); if (sock_fd < 0) { LOG(LOGS_ERR, "Could not open command socket on %s", UTI_IPSockAddrToString(&local_addr)); -- 2.47.2