mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: disable relay if built-in DERP is disabled (#12654)
Fixes https://github.com/coder/coder/issues/12493
This commit is contained in:
@ -429,7 +429,11 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
|
||||
if !options.DeploymentValues.DERP.Server.Enable.Value() {
|
||||
region = nil
|
||||
}
|
||||
derpMap, err := tailnet.NewDERPMap(ctx, region, stunAddresses, "", "", options.DeploymentValues.DERP.Config.BlockDirect.Value())
|
||||
derpMap, err := tailnet.NewDERPMap(ctx, region, stunAddresses,
|
||||
options.DeploymentValues.DERP.Config.URL.Value(),
|
||||
options.DeploymentValues.DERP.Config.Path.Value(),
|
||||
options.DeploymentValues.DERP.Config.BlockDirect.Value(),
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
return func(h http.Handler) {
|
||||
|
Reference in New Issue
Block a user