mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: add --block-direct-connections
to wsproxies (#12182)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user