fix: add --block-direct-connections to wsproxies (#12182)

This commit is contained in:
Colin Adler
2024-03-07 23:45:59 -06:00
committed by GitHub
parent 66154f937e
commit 6b0b87eb27
6 changed files with 80 additions and 3 deletions

View File

@ -34,6 +34,7 @@ type ProxyOptions struct {
DisablePathApps bool
DerpDisabled bool
DerpOnly bool
BlockDirect bool
// ProxyURL is optional
ProxyURL *url.URL
@ -158,6 +159,7 @@ func NewWorkspaceProxyReplica(t *testing.T, coderdAPI *coderd.API, owner *coders
DERPOnly: options.DerpOnly,
DERPServerRelayAddress: serverURL.String(),
StatsCollectorOptions: statsCollectorOptions,
BlockDirect: options.BlockDirect,
})
require.NoError(t, err)
t.Cleanup(func() {