diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 23:27:28 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 23:27:28 +0200 |
commit | e21ea58db36b8caf3b7da075c9c39505449d0110 (patch) | |
tree | d25b1f42300d95edcb851b696f274311b1b42999 | |
parent | b56af1829d0368c893f8e9e14894f9563afb60ef (diff) |
Prettier abbreviation
-rw-r--r-- | peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |