database64128/shadowsocks-go

[Feature request] auto get really unix time

Closed this issue · 1 comments

why we need it ?

ss2022 wiki
Messages with over 30 seconds of time difference MUST be treated as replay

recommend add a background goroutine to get really unix time (or just once after startup) ,then we can use it verify timestamp diff

so we can avoid local machine time errors ?

Public_Time_Servers

recommend add a background goroutine to get really unix time (or just once after startup) ,then we can use it verify timestamp diff

And now you have to detect whether the system just woke up from sleep/hibernation. Too many complications for so little benefit. Seriously, just enable NTP on your system.