This commit is contained in:
Kekskurse 2021-06-01 18:14:29 +02:00
parent c6de5b82e9
commit c1840caa36
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -7,7 +7,7 @@ import (
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
) )
func RemovePeer(deviceName, PeerPublicKey string) (error) { func PeerRemove(deviceName, PeerPublicKey string) (error) {
client, err := wgctrl.New() client, err := wgctrl.New()
if err != nil { if err != nil {
return fmt.Errorf("Cant create wgctrl: %w", err) return fmt.Errorf("Cant create wgctrl: %w", err)