Skip to content

Commit

Permalink
Merge pull request #34 from stv0g/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
mlsmaycon authored Jun 15, 2021
2 parents 8b31088 + 89dba79 commit 6465e25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 93 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
85 changes: 0 additions & 85 deletions iface/nat_linux.go

This file was deleted.

0 comments on commit 6465e25

Please sign in to comment.