Skip to content

Commit

Permalink
Chrome doesn't listen on ipv6, force ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed May 2, 2022
1 parent 698ae54 commit 46c5682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/chrome/probe.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function() {
.then(port => {
if (port) {
config.debugPort = port
config.debugUrl = 'http://localhost:' + config.debugPort
config.debugUrl = 'http://127.0.0.1:' + config.debugPort
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ config.set = function(options) {
config.url = utils.cleanUrl('http://localhost:' + config.port)

config.debugPort = session.get('debugPort') || (config.port + 1)
config.debugUrl = 'http://localhost:' + config.debugPort
config.debugUrl = 'http://127.0.0.1:' + config.debugPort

if (config.debug === 1)
log.debug(config)
Expand Down

0 comments on commit 46c5682

Please sign in to comment.