mirror of
https://github.com/wgtunnel/wireproxy-awg.git
synced 2026-10-09 14:35:59 -07:00
22 lines
479 B
Go
22 lines
479 B
Go
package wireproxy
|
|
|
|
import (
|
|
"net"
|
|
"sync"
|
|
|
|
"github.com/amnezia-vpn/amneziawg-go/v3/device"
|
|
"github.com/amnezia-vpn/amneziawg-go/v3/tun/netstack"
|
|
)
|
|
|
|
// VirtualTun stores a reference to netstack network and DNS configuration
|
|
type VirtualTun struct {
|
|
Tnet *netstack.Net
|
|
Dev *device.Device
|
|
Logger *device.Logger
|
|
Uapi net.Listener
|
|
Conf *DeviceConfig
|
|
// PingRecord stores the last time an IP was pinged
|
|
PingRecord map[string]uint64
|
|
PingRecordLock *sync.Mutex
|
|
}
|