WIP
This commit is contained in:
12
peer/new.go
12
peer/new.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user