mirror of
https://github.com/callebtc/electronwall.git
synced 2025-12-18 15:44:20 +01:00
correct remote alias
This commit is contained in:
@@ -8,7 +8,11 @@ import (
|
||||
)
|
||||
|
||||
func trimPubKey(pubkey []byte) string {
|
||||
return fmt.Sprintf("%s...%s", hex.EncodeToString(pubkey)[:6], hex.EncodeToString(pubkey)[len(hex.EncodeToString(pubkey))-6:])
|
||||
if len(pubkey) > 12 {
|
||||
return fmt.Sprintf("%s...%s", hex.EncodeToString(pubkey)[:6], hex.EncodeToString(pubkey)[len(hex.EncodeToString(pubkey))-6:])
|
||||
} else {
|
||||
return hex.EncodeToString(pubkey)
|
||||
}
|
||||
}
|
||||
|
||||
func welcome() {
|
||||
|
||||
Reference in New Issue
Block a user