WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
730 stars 85 forks source link

wireguardctrl: treat UNIX epoch as zero time.Time #25

Closed mdlayher closed 5 years ago

mdlayher commented 5 years ago

I think this makes more sense than asking the caller to check for time.Unix(0, 0) for "last handshake never occurred".

Fixes #24.

/r @cespare

cespare commented 5 years ago

LGTM!