fix(core): update
This commit is contained in:
parent
05bc8fb72c
commit
d3a507c3ff
@ -20,6 +20,7 @@ tap.test('should determine wether a port is free', async () => {
|
|||||||
|
|
||||||
tap.test('should scan a port', async () => {
|
tap.test('should scan a port', async () => {
|
||||||
await expect(testSmartNetwork.isRemotePortAvailable('google.com:80')).to.eventually.be.true;
|
await expect(testSmartNetwork.isRemotePortAvailable('google.com:80')).to.eventually.be.true;
|
||||||
|
await expect(testSmartNetwork.isRemotePortAvailable('google.com', 80)).to.be.eventually.true;
|
||||||
await expect(testSmartNetwork.isRemotePortAvailable('67.207.79.63:12346')).to.eventually.be.false;
|
await expect(testSmartNetwork.isRemotePortAvailable('67.207.79.63:12346')).to.eventually.be.false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ export class SmartNetwork {
|
|||||||
|
|
||||||
plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => {
|
plugins.portscanner.checkPortStatus(port, domainPart, (err, status ) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(err);
|
// console.log(err);
|
||||||
return done.resolve(false);
|
return done.resolve(false);
|
||||||
}
|
}
|
||||||
if (status === 'open') {
|
if (status === 'open') {
|
||||||
|
Loading…
Reference in New Issue
Block a user