mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 16:14:11 +00:00
Add optional NTP synchronization for hosts where shoes cannot set the system clock. Share the corrected time across REALITY, VMess, Shadowsocks 2022, and TLS certificate validation, using protected direct UDP with bounded synchronization, periodic refresh, and reload-safe ownership. Preserve timestamp windows and replay protection, retain the last correction on refresh failure, and document configuration and clock limitations.
13 lines
339 B
YAML
13 lines
339 B
YAML
# Opt-in application time correction; never changes the host clock.
|
|
# NTP is unauthenticated. Use a trusted server; an IP avoids bootstrap DNS.
|
|
- global_settings:
|
|
ntp:
|
|
server: time.cloudflare.com:123
|
|
interval_secs: 1800
|
|
timeout_secs: 5
|
|
|
|
- address: 127.0.0.1:1080
|
|
protocol:
|
|
type: socks
|
|
rules: allow-all-direct
|