Skip to content

Commit 9779366

Browse files
committed
Properly handle absence of lo network interface.
Fixes issue 7465.
1 parent 4d136e2 commit 9779366

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

javascript/node/selenium-webdriver/CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## v2.43.0-dev
1+
## v2.42.1
22

3+
* FIXED: 7465: Fixed `net.getLoopbackAddress` on Windows
34
* FIXED: 7277: Support `done` callback in Mocha's BDD interface
45
* FIXED: 7156: `Promise#thenFinally` should not suppress original error
56

javascript/node/selenium-webdriver/net/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function getAddress(loopback, opt_family) {
4141

4242
var interfaces;
4343
if (loopback) {
44-
interfaces = [getLoInterface()];
44+
var lo = getLoInterface();
45+
interfaces = lo ? [lo] : null;
4546
}
4647
interfaces = interfaces || os.networkInterfaces();
4748
for (var key in interfaces) {

javascript/node/selenium-webdriver/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-webdriver",
3-
"version": "2.43.0-dev",
3+
"version": "2.42.1",
44
"description": "The official WebDriver JavaScript bindings from the Selenium project",
55
"keywords": [
66
"automation",

0 commit comments

Comments
 (0)