Add flow client with sender/receiver (#3405)

add an initial version of receiver client and flow manager receiver and sender
This commit is contained in:
Maycon Santos
2025-02-28 17:16:18 +00:00
committed by GitHub
parent fa748a7ec2
commit f6d7bccfa0
10 changed files with 309 additions and 13 deletions
+2 -1
View File
@@ -216,6 +216,7 @@ func NewEngine(
statusRecorder *peer.Status,
checks []*mgmProto.Checks,
) *Engine {
publicKey := config.WgPrivateKey.PublicKey()
engine := &Engine{
clientCtx: clientCtx,
clientCancel: clientCancel,
@@ -234,7 +235,7 @@ func NewEngine(
statusRecorder: statusRecorder,
checks: checks,
connSemaphore: semaphoregroup.NewSemaphoreGroup(connInitLimit),
flowManager: netflow.NewManager(clientCtx),
flowManager: netflow.NewManager(clientCtx, publicKey[:]),
}
if runtime.GOOS == "ios" {
if !fileExists(mobileDep.StateFilePath) {