mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 18:55:06 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user