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

@@ -265,9 +265,6 @@ open_socket(int family, int port)
CNF_GetBindAddress(family, &local_addr.ip_addr);
iface = CNF_GetBindNtpInterface();
if (local_addr.ip_addr.family != family)
SCK_GetAnyLocalIPAddress(family, &local_addr.ip_addr);
local_addr.port = port;
sock_fd = SCK_OpenTcpSocket(NULL, &local_addr, iface, 0);