Skip to content

Commit

Permalink
ipn/wgproxy: m rmv unused structs
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Aug 8, 2023
1 parent 1df38a6 commit acbce52
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions intra/ipn/wgproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"strconv"
"strings"
"syscall"
"time"

"github.com/celzero/firestack/intra/ipn/wg"
"github.com/celzero/firestack/intra/log"
Expand Down Expand Up @@ -57,26 +56,6 @@ const (
noaddr = ""
)

// unused
type wgifc struct {
id string // name of the wg interface
privkey string // private key
pubkey string // public key
ifaddrs []*netip.Addr // wg interface addresses
dnsaddrs []*netip.Addr // wg interface dns addresses
listenport int // listen for incoming conns
mtu int // preferred mtu
}

// unused
type wgpeerc struct {
psk string // preshared key
pubkey string // public key
keepalive time.Duration // keepalive interval in seconds
endpoint *netip.AddrPort // remote endpoint
allowedips []*netip.Addr // allowed ips
}

type wgtun struct {
id string
addrs []*netip.Prefix
Expand Down

1 comment on commit acbce52

@ignoramous
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.