mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Simplify public key generation
Intermediate string builder wasn't necessary.
This commit is contained in:
parent
bf3f79fc63
commit
96611f4804
@ -213,8 +213,7 @@ func MakeSSHKeyPair() (string, string, error) {
|
|||||||
return "", "", err
|
return "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
var pubKeyBuf strings.Builder
|
pubKey := string(ssh.MarshalAuthorizedKey(pub))
|
||||||
pubKeyBuf.Write(ssh.MarshalAuthorizedKey(pub))
|
|
||||||
|
|
||||||
return pubKeyBuf.String(), privKeyBuf.String(), nil
|
return pubKey, privKeyBuf.String(), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user