socket-function 1.2.7 → 1.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -272,7 +272,7 @@ export async function startSocketServer(
272
272
  }
273
273
  }
274
274
 
275
- if (!sniServers.has(sni)) {
275
+ if (!sniServers.has(sni) && sniServers.size > 0) {
276
276
  console.warn(`No SNI server found for ${originalSNI}, using main server. SNI candidates ${Array.from(sniServers.keys()).join(", ")}`);
277
277
  }
278
278
  server = sniServers.get(sni) || mainHTTPSServer;