Skip to content

Commit 241ac5f

Browse files
fix: prevent scan start with local URLs when using own BrowserStack Local binary process
1 parent 9ba166c commit 241ac5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/accessiblity-utils/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class AccessibilityScanner {
3535
const localHosts = new Set(["127.0.0.1", "localhost", "0.0.0.0"]);
3636
const BS_LOCAL_DOMAIN = "bs-local.com";
3737

38-
if (config.USE_OWN_LOCAL_BINARY_PROCESS) {
38+
if (config.USE_OWN_LOCAL_BINARY_PROCESS && hasLocal) {
3939
throw new Error(
4040
"Cannot start scan with local URLs when using own BrowserStack Local binary process. Please set USE_OWN_LOCAL_BINARY_PROCESS to false.",
4141
);

0 commit comments

Comments
 (0)