fix(core): update

This commit is contained in:
Philipp Kunz 2019-04-16 10:23:11 +02:00
parent 56558345e5
commit fda63e4f95

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) {