mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: implement DERP streaming on tailnet Client API (#11302)
Implements DERPMap streaming from client API. In a subsequent PR I plan to remove the implementation in coderd/agentapi in favor of the tailnet one
This commit is contained in:
@ -479,7 +479,11 @@ func New(options *Options) *API {
|
||||
}
|
||||
}
|
||||
api.TailnetClientService, err = tailnet.NewClientService(
|
||||
api.Logger.Named("tailnetclient"), &api.TailnetCoordinator)
|
||||
api.Logger.Named("tailnetclient"),
|
||||
&api.TailnetCoordinator,
|
||||
api.Options.DERPMapUpdateFrequency,
|
||||
api.DERPMap,
|
||||
)
|
||||
if err != nil {
|
||||
api.Logger.Fatal(api.ctx, "failed to initialize tailnet client service", slog.Error(err))
|
||||
}
|
||||
|
Reference in New Issue
Block a user