This commit is contained in:
jdl
2026-06-10 19:17:55 +02:00
parent db78964033
commit f89f5d5083
7 changed files with 260 additions and 65 deletions

View File

@@ -17,6 +17,7 @@ func New(
hubURL, apiKey string,
ifaceName string,
localDomain string,
networkStatePath string,
) (*App, error) {
a4 := state.VPNIP.As4()
@@ -50,10 +51,13 @@ func New(
multicastCh := make(chan MulticastEvent)
poller, err := NewHubPoller(
state.VPNIP, state.VPNNet,
hubURL, apiKey,
hubAddCh, hubRemoveCh,
)
state.VPNIP,
state.VPNNet,
hubURL,
apiKey,
networkStatePath,
hubAddCh,
hubRemoveCh)
if err != nil {
return nil, fmt.Errorf("hub poller: %w", err)
}