Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
stv0g committed Jun 15, 2021
1 parent efa6ce3 commit c21b8a3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions iface/iface.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package iface

import (
"net"
"time"

log "github.com/sirupsen/logrus"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/tun"
"golang.zx2c4.com/wireguard/wgctrl"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"net"
"time"
)

const (
Expand Down Expand Up @@ -148,12 +149,6 @@ func UpdateListenPort(iface string, newPort int) error {
return nil
}

func ifname(n string) []byte {
b := make([]byte, 16)
copy(b, []byte(n+"\x00"))
return b
}

// UpdatePeer updates existing Wireguard Peer or creates a new one if doesn't exist
// Endpoint is optional
func UpdatePeer(iface string, peerKey string, allowedIps string, keepAlive time.Duration, endpoint string) error {
Expand Down

0 comments on commit c21b8a3

Please sign in to comment.