Skip to content

Commit 2e07915

Browse files
committed
force proxy
1 parent 170c806 commit 2e07915

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/main/java/com/browserstack/local/Local.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public Local() {
3434
parameters.put("proxyPort", "-proxyPort");
3535
parameters.put("proxyUser", "-proxyUser");
3636
parameters.put("proxyPass", "-proxyPass");
37+
parameters.put("forceproxy", "-forceproxy");
3738
parameters.put("hosts", "-hosts");
3839
}
3940

src/test/java/com/browserstack/local/BrowserStackLocalTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ public void testEnableForceLocal() throws Exception {
8989
assertTrue(l.command.contains("-forcelocal"));
9090
}
9191

92+
@Test
93+
public void testEnableForceProxy() throws Exception {
94+
options.put("forceproxy", "");
95+
options.put("onlyCommand", "true");
96+
l.start(options);
97+
assertTrue(l.command.contains("-forceproxy"));
98+
}
99+
92100
@Test
93101
public void testSetLocalIdentifier() throws Exception {
94102
options.put("localIdentifier", "abcdef");

0 commit comments

Comments
 (0)