mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 11:05:06 -05:00
ntp: open server socket only when access is allowed
When changing access configuration, check if any address is allowed and open/close the server socket as needed.
This commit is contained in:
@@ -72,4 +72,9 @@ extern void ADF_DestroyTable(ADF_AuthTable table);
|
||||
extern int ADF_IsAllowed(ADF_AuthTable table,
|
||||
IPAddr *ip);
|
||||
|
||||
/* Check if at least one address from a given family is allowed by
|
||||
the rules in the table */
|
||||
extern int ADF_IsAnyAllowed(ADF_AuthTable table,
|
||||
int family);
|
||||
|
||||
#endif /* GOT_ADDRFILT_H */
|
||||
|
||||
Reference in New Issue
Block a user