mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +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:
+5
-1
@@ -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