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 = {
5151 args : '--args' ,
5252} ;
5353
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+
5460const getIgnoredParamsWarningsMessage = ( optionName ) => {
5561 return `The Firefox for Android target does not support ${ optionName } ` ;
5662} ;
@@ -120,7 +126,7 @@ export class FirefoxAndroidExtensionRunner {
120126 async run ( ) : Promise < void > {
121127 const {
122128 adbBin,
123- adbHost,
129+ adbHost = DEFAULT_ADB_HOST ,
124130 adbPort,
125131 ADBUtils = DefaultADBUtils ,
126132 } = this . params ;
You can’t perform that action at this time.
0 commit comments