This commit is contained in:
jdl
2026-06-07 18:12:44 +02:00
parent cad200b9cc
commit b8344a20b9
37 changed files with 568 additions and 981 deletions

View File

@@ -1,7 +1,6 @@
package peer
import (
"net"
"net/netip"
"os"
"os/signal"
@@ -56,7 +55,7 @@ type App struct {
// Infrastructure
dev WGDevice
controlConn *net.UDPConn
controlConn ControlConn
// Peer state
relay *Peer
@@ -67,9 +66,6 @@ type App struct {
selfV4 netip.AddrPort
selfV6 netip.AddrPort
// Monotonically increasing ID for outbound pings (client role only)
nextPingID int64 // TODO: Remove
// Event channels fed by background goroutines
hubAddCh <-chan HubPeer
hubRemoveCh <-chan wgtypes.Key