This commit is contained in:
Kekskurse 2021-06-01 19:58:30 +02:00
parent c453ea7231
commit 951d12aa23
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

2
key.go
View file

@ -2,7 +2,7 @@ package gowgpkg
import "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
func CreatePrivateKey() (publicKey, privateKey string, err error) {
func CreateKeys() (publicKey, privateKey string, err error) {
r, err := wgtypes.GeneratePrivateKey()
if err != nil {
return "", "", err