mirror of https://github.com/tailscale/tailscale/
logtail: do not panic in PrivateID.PublicID (#4815)
It is not idiomatic for Go code to panic for situations that can be normal. For example, if a server receives PrivateID from a client, it is normal for the server to call PrivateID.PublicID to validate that the PublicID matches. However, doing so would panic prior to this change. Signed-off-by: Joe Tsai <joetsai@digital-static.net>pull/4816/head
parent
3a182d5dd6
commit
96f73b3894
Loading…
Reference in New Issue