angeloc / htpdate

The (new) home of HTTP Time Protocol (HTP)
Other
38 stars 5 forks source link

htpdate: add error message when get fails #14

Closed angeloc closed 3 years ago

angeloc commented 3 years ago

When http(s) GET fails for some reason, the time is defaulted to the epoch, the offset became quite large and later discarded by the sanity check. Even if the behavior is right, is not always clear from the output why a server should return such a wrong offset.

Signed-off-by: Angelo Compagnucci angelo.compagnucci@gmail.com