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