summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 23:27:28 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 23:27:28 +0200
commite21ea58db36b8caf3b7da075c9c39505449d0110 (patch)
treed25b1f42300d95edcb851b696f274311b1b42999
parentb56af1829d0368c893f8e9e14894f9563afb60ef (diff)
Prettier abbreviation
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
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)
}