mirror of https://gitee.com/bigwinds/arangodb
whitespace
This commit is contained in:
parent
bf1cc16c5f
commit
cc9f416bba
|
@ -567,7 +567,7 @@ actions.defineHttp({
|
|||
return;
|
||||
}
|
||||
try {
|
||||
var r = internal.testPort("tcp://0.0.0.0:"+port);
|
||||
var r = internal.testPort("tcp://0.0.0.0:" + port);
|
||||
res.responseCode = actions.HTTP_OK;
|
||||
res.contentType = "application/json; charset=utf-8";
|
||||
res.body = JSON.stringify(r);
|
||||
|
|
|
@ -140,10 +140,10 @@ PortFinder.prototype.next = function () {
|
|||
}
|
||||
}
|
||||
// Check that port is available:
|
||||
if (!this.dispatcher.avoidPorts.hasOwnProperty(this.port)) {
|
||||
if (! this.dispatcher.avoidPorts.hasOwnProperty(this.port)) {
|
||||
var available = true;
|
||||
if (this.dispatcher.endpoint === "tcp://localhost:") {
|
||||
available = testPort("tcp://0.0.0.0:"+this.port);
|
||||
available = testPort("tcp://0.0.0.0:" + this.port);
|
||||
}
|
||||
else {
|
||||
var url = endpointToURL(this.dispatcher.endpoint) +
|
||||
|
|
Loading…
Reference in New Issue