Skip to content

Commit

Permalink
Properly handle absence of lo network interface.
Browse files Browse the repository at this point in the history
Fixes issue 7465.
  • Loading branch information
jleyba committed Jun 10, 2014
1 parent 4d136e2 commit 9779366
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion javascript/node/selenium-webdriver/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## v2.43.0-dev
## v2.42.1

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

Expand Down
3 changes: 2 additions & 1 deletion javascript/node/selenium-webdriver/net/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function getAddress(loopback, opt_family) {

var interfaces;
if (loopback) {
interfaces = [getLoInterface()];
var lo = getLoInterface();
interfaces = lo ? [lo] : null;
}
interfaces = interfaces || os.networkInterfaces();
for (var key in interfaces) {
Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "selenium-webdriver",
"version": "2.43.0-dev",
"version": "2.42.1",
"description": "The official WebDriver JavaScript bindings from the Selenium project",
"keywords": [
"automation",
Expand Down

0 comments on commit 9779366

Please sign in to comment.