File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,12 @@ const ignoredParams = {
51
51
args : '--args' ,
52
52
} ;
53
53
54
+ // Default adbHost to 127.0.0.1 to prevent issues with nodejs 17
55
+ // (because if not specified adbkit may default to ipv6 while
56
+ // adb may still only be listening on the ipv4 address),
57
+ // see https://github.com/mozilla/web-ext/issues/2337.
58
+ const DEFAULT_ADB_HOST = '127.0.0.1' ;
59
+
54
60
const getIgnoredParamsWarningsMessage = ( optionName ) => {
55
61
return `The Firefox for Android target does not support ${ optionName } ` ;
56
62
} ;
@@ -120,7 +126,7 @@ export class FirefoxAndroidExtensionRunner {
120
126
async run ( ) : Promise < void > {
121
127
const {
122
128
adbBin,
123
- adbHost,
129
+ adbHost = DEFAULT_ADB_HOST ,
124
130
adbPort,
125
131
ADBUtils = DefaultADBUtils ,
126
132
} = this . params ;
You can’t perform that action at this time.
0 commit comments