Compare commits

...

2 Commits

Author SHA1 Message Date
b5eac3c54f 1.1.2 2019-04-16 10:23:11 +02:00
fda63e4f95 fix(core): update 2019-04-16 10:23:11 +02:00
3 changed files with 3 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnetwork",
"version": "1.1.1",
"version": "1.1.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnetwork",
"version": "1.1.1",
"version": "1.1.2",
"private": false,
"description": "network diagnostics",
"main": "dist/index.js",

View File

@ -108,9 +108,7 @@ export class SmartNetwork {
public async isRemotePortAvailable(domainArg: string, portArg?: number): Promise<boolean> {
const done = plugins.smartpromise.defer<boolean>();
const domainPart = domainArg.split(':')[0];
const port = (() => {
return portArg ? portArg : parseInt(domainArg.split(':')[1], 10);
})()
const port = portArg ? portArg : parseInt(domainArg.split(':')[1], 10);
plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => {
if (err) {