Stuff
This commit is contained in:
parent
c6de5b82e9
commit
c1840caa36
1 changed files with 1 additions and 1 deletions
2
peer.go
2
peer.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue