From: Jason A. Donenfeld Date: Sun, 13 May 2018 21:27:28 +0000 (+0200) Subject: Prettier abbreviation X-Git-Tag: 0.0.20180514~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e21ea58db36b8caf3b7da075c9c39505449d0110;p=thirdparty%2Fwireguard-go.git Prettier abbreviation --- diff --git a/peer.go b/peer.go index 1151341..954c69c 100644 --- a/peer.go +++ b/peer.go @@ -147,7 +147,7 @@ func (peer *Peer) String() string { base64Key := base64.StdEncoding.EncodeToString(peer.handshake.remoteStatic[:]) abbreviatedKey := "invalid" if len(base64Key) == 44 { - abbreviatedKey = base64Key[0:4] + "..." + base64Key[40:44] + abbreviatedKey = base64Key[0:4] + "…" + base64Key[39:43] } return fmt.Sprintf("peer(%s)", abbreviatedKey) }