Implemented patch handler but not sure how to correctly contruct the test for it

This commit is contained in:
Fran Bull
2024-04-01 13:26:04 -07:00
parent 886ffc3096
commit 79af5fef05
4 changed files with 84 additions and 4 deletions

View File

@@ -101,6 +101,18 @@ func (e *AppConnector) UpdateDomainsAndRoutes(domains []string, routes []netip.P
})
}
func (e *AppConnector) RouteInfo() *routeinfo.RouteInfo {
if e.routeInfo == nil {
ret, err := e.routeAdvertiser.ReadRouteInfo()
if err != nil {
e.logf("Unsuccessful Read RouteInfo: ", err)
return routeinfo.NewRouteInfo()
}
return ret
}
return e.routeInfo
}
// UpdateDomains asynchronously replaces the current set of configured domains
// with the supplied set of domains. Domains must not contain a trailing dot,
// and should be lower case. If the domain contains a leading '*' label it