conf: adopt default bind*address values

Move the default values of the bind*address settings from the
ntp/nts/cmdmon code to conf.
This commit is contained in:
Miroslav Lichvar
2020-07-13 14:19:45 +02:00
parent c10b66b579
commit 58da0c0ad2
5 changed files with 8 additions and 12 deletions

View File

@@ -169,10 +169,7 @@ open_socket(int family)
return INVALID_SOCK_FD;
CNF_GetBindCommandAddress(family, &local_addr.ip_addr);
if (local_addr.ip_addr.family != family)
SCK_GetLoopbackIPAddress(family, &local_addr.ip_addr);
local_addr.port = port;
iface = CNF_GetBindCommandInterface();
sock_fd = SCK_OpenUdpSocket(NULL, &local_addr, iface, SCK_FLAG_RX_DEST_ADDR);