browserstack / browserstack-local-java

Java bindings for BrowserStack Local
https://www.browserstack.com
MIT License
18 stars 34 forks source link

Add more flags for browserstack local #62

Open pejota06 opened 2 years ago

pejota06 commented 2 years ago

Well I need to use --exclude-hosts and --include-hosts flags to configure proxy settings, could it be possible to add these flags?

Inderjeet0007 commented 2 years ago

Hi!

Could you please try using the flags "-exclude-hosts" and "-include-hosts" to configure proxy settings.

pejota06 commented 2 years ago

@Inderjeet0007 thanks for your answer, I set:

bsLocalArgs.put("-include-hosts", ".*");
bsLocalArgs.put("-exclude-hosts", ".*some domain.*");

But it doesn't work, I've also tried:

bsLocalArgs.put("forcelocal", ".*");
bsLocalArgs.put("-exclude-hosts", ".*some domain.*");

But it neither works.