Skip to content

Commit a3211b6

Browse files
feat: Add disable_default_proxy for stealth browsers
1 parent 3e7bb88 commit a3211b6

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 104
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-aeb5ea5c2632fe7fd905d509bc6cbb06999d17c458ec44ffd713935ba5b848f9.yml
3-
openapi_spec_hash: fef45a8569f1d3de04c86e95b1112665
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-20310988401243aa5c4a2e2ac6cba5dd90873fb7b83497a2d50c691352c0dd7b.yml
3+
openapi_spec_hash: e19e650b4b2c8c8fde1f739c4aab6b33
44
config_hash: 16e4457a0bb26e98a335a1c2a572290a

browser.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,9 @@ type BrowserUpdateParams struct {
671671
// ID of the proxy to use. Omit to leave unchanged, set to empty string to remove
672672
// proxy.
673673
ProxyID param.Opt[string] `json:"proxy_id,omitzero"`
674+
// If true, stealth browsers connect directly instead of using the default stealth
675+
// proxy.
676+
DisableDefaultProxy param.Opt[bool] `json:"disable_default_proxy,omitzero"`
674677
// Profile to load into the browser session. Only allowed if the session does not
675678
// already have a profile loaded.
676679
Profile shared.BrowserProfileParam `json:"profile,omitzero"`

browser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func TestBrowserUpdateWithOptionalParams(t *testing.T) {
110110
context.TODO(),
111111
"htzv5orfit78e1m2biiifpbv",
112112
kernel.BrowserUpdateParams{
113+
DisableDefaultProxy: kernel.Bool(true),
113114
Profile: shared.BrowserProfileParam{
114115
ID: kernel.String("id"),
115116
Name: kernel.String("name"),

0 commit comments

Comments
 (0)