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

@@ -98,9 +98,6 @@ open_socket(int family, int local_port, int client_only, IPSockAddr *remote_addr
iface = CNF_GetBindAcquisitionInterface();
}
if (local_addr.ip_addr.family != family)
SCK_GetAnyLocalIPAddress(family, &local_addr.ip_addr);
local_addr.port = local_port;
sock_flags = SCK_FLAG_RX_DEST_ADDR | SCK_FLAG_PRIV_BIND;