mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-27 06:49:07 +01:00
Fix key shortening function to handle short public keys
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
package peer
|
package peer
|
||||||
|
|
||||||
func shortenKey(pubKey string) string {
|
func shortenKey(pubKey string) string {
|
||||||
|
if len(pubKey) < 7 {
|
||||||
|
return pubKey
|
||||||
|
}
|
||||||
return pubKey[:7]
|
return pubKey[:7]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user