Keys
This commit is contained in:
parent
c453ea7231
commit
951d12aa23
1 changed files with 1 additions and 1 deletions
2
key.go
2
key.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue