fix: NTP syncs as soon as DHCP has a lease, random origin cookie instead of the unsynced local clock, TLS validates certificates against UTC
This commit is contained in:
1 parent
1d00c1c016
commit
7e036c94e7
13 files changed
+51
-59
No files matched your search
@@ -505,6 +505,8 @@ namespace montauk {
|
||||
|
||||
// Timekeeping (wall-clock)
|
||||
inline void gettime(montauk::abi::DateTime* out) { syscall1(montauk::abi::SYS_GETTIME, (uint64_t)out); }
|
||||
// UTC seconds since 1970 (gettime() is local time).
|
||||
inline int64_t get_unix_time() { return syscall0(montauk::abi::SYS_GETUNIXTIME); }
|
||||
inline int set_unix_time(int64_t unix_seconds) {
|
||||
return (int)syscall1(montauk::abi::SYS_SETUNIXTIME, (uint64_t)unix_seconds);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user