mirror of
https://github.com/fosrl/olm.git
synced 2026-03-04 01:36:47 +00:00
committed by
Owen Schwartz
parent
f8dc134210
commit
7b7eae617a
@@ -34,18 +34,18 @@ type DNSProxy struct {
|
|||||||
ep *channel.Endpoint
|
ep *channel.Endpoint
|
||||||
proxyIP netip.Addr
|
proxyIP netip.Addr
|
||||||
upstreamDNS []string
|
upstreamDNS []string
|
||||||
tunnelDNS bool // Whether to tunnel DNS queries over WireGuard or to spit them out locally
|
tunnelDNS bool // Whether to tunnel DNS queries over WireGuard or to spit them out locally
|
||||||
mtu int
|
mtu int
|
||||||
tunDevice tun.Device // Direct reference to underlying TUN device for responses
|
tunDevice tun.Device // Direct reference to underlying TUN device for responses
|
||||||
middleDevice *device.MiddleDevice // Reference to MiddleDevice for packet filtering
|
middleDevice *device.MiddleDevice // Reference to MiddleDevice for packet filtering
|
||||||
recordStore *DNSRecordStore // Local DNS records
|
recordStore *DNSRecordStore // Local DNS records
|
||||||
|
|
||||||
// Tunnel DNS fields - for sending queries over WireGuard
|
// Tunnel DNS fields - for sending queries over WireGuard
|
||||||
tunnelIP netip.Addr // WireGuard interface IP (source for tunneled queries)
|
tunnelIP netip.Addr // WireGuard interface IP (source for tunneled queries)
|
||||||
tunnelStack *stack.Stack // Separate netstack for outbound tunnel queries
|
tunnelStack *stack.Stack // Separate netstack for outbound tunnel queries
|
||||||
tunnelEp *channel.Endpoint
|
tunnelEp *channel.Endpoint
|
||||||
tunnelActivePorts map[uint16]bool
|
tunnelActivePorts map[uint16]bool
|
||||||
tunnelPortsLock sync.Mutex
|
tunnelPortsLock sync.Mutex
|
||||||
|
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
cancel context.CancelFunc
|
cancel context.CancelFunc
|
||||||
|
|||||||
@@ -811,7 +811,7 @@ func StartTunnel(config TunnelConfig) {
|
|||||||
Endpoint: handshakeData.ExitNode.Endpoint,
|
Endpoint: handshakeData.ExitNode.Endpoint,
|
||||||
RelayPort: relayPort,
|
RelayPort: relayPort,
|
||||||
PublicKey: handshakeData.ExitNode.PublicKey,
|
PublicKey: handshakeData.ExitNode.PublicKey,
|
||||||
SiteIds: []int{siteId},
|
SiteIds: []int{siteId},
|
||||||
}
|
}
|
||||||
|
|
||||||
added := holePunchManager.AddExitNode(exitNode)
|
added := holePunchManager.AddExitNode(exitNode)
|
||||||
|
|||||||
Reference in New Issue
Block a user