fix(core): update
This commit is contained in:
		| @@ -108,9 +108,7 @@ export class SmartNetwork { | |||||||
|   public async isRemotePortAvailable(domainArg: string, portArg?: number): Promise<boolean> { |   public async isRemotePortAvailable(domainArg: string, portArg?: number): Promise<boolean> { | ||||||
|     const done = plugins.smartpromise.defer<boolean>(); |     const done = plugins.smartpromise.defer<boolean>(); | ||||||
|     const domainPart = domainArg.split(':')[0]; |     const domainPart = domainArg.split(':')[0]; | ||||||
|     const port = (() => { |     const port = portArg ? portArg : parseInt(domainArg.split(':')[1], 10); | ||||||
|       return portArg ? portArg : parseInt(domainArg.split(':')[1], 10); |  | ||||||
|     })() |  | ||||||
|  |  | ||||||
|     plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => { |     plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => { | ||||||
|       if (err) { |       if (err) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user