From acbce527df7a4c42377e9b408132eb3e4e7c6dfc Mon Sep 17 00:00:00 2001 From: Murtaza Aliakbar Date: Tue, 8 Aug 2023 21:27:52 +0530 Subject: [PATCH] ipn/wgproxy: m rmv unused structs --- intra/ipn/wgproxy.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/intra/ipn/wgproxy.go b/intra/ipn/wgproxy.go index d99fff48..3828fcb6 100644 --- a/intra/ipn/wgproxy.go +++ b/intra/ipn/wgproxy.go @@ -24,7 +24,6 @@ import ( "strconv" "strings" "syscall" - "time" "github.com/celzero/firestack/intra/ipn/wg" "github.com/celzero/firestack/intra/log" @@ -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