bdy 1.10.6-dev → 1.10.7-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.10.6-dev",
4
+ "version": "1.10.7-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -18,6 +18,10 @@ class TunnelLatency extends events_1.default {
18
18
  check() {
19
19
  if (this.isChecking)
20
20
  return;
21
+ if (!this.port || !this.host) {
22
+ this.latency = -1;
23
+ return;
24
+ }
21
25
  this.isChecking = true;
22
26
  let socket = new net_1.Socket();
23
27
  let ts = null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.10.6-dev",
4
+ "version": "1.10.7-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {