add NTP time synchronization module

This commit is contained in:
Evgeny committed 2026-07-14 20:14:00 +03:00
1 parent f3719a28df
commit 1a0229fd4f
8 files changed
+385 -2

No files matched your search

+6
View File
@@ -182,6 +182,12 @@ struct global_config {
// TCP proxy server (exit node) configuration ([tcp_proxy_server] section)
int tcp_proxy_server_enabled;
int tcp_recv_buf; // SO_RCVBUF для TCP сокетов (0=default ОС)
// NTP configuration ([ntp] section)
int ntp_enabled;
char ntp_servers[5][256]; // up to 5 NTP server hostnames
int ntp_server_count;
int ntp_resync_interval; // seconds, default 3600
};
struct utun_config {