socket-function 0.71.0 → 0.72.0

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": "0.71.0",
3
+ "version": "0.72.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -214,6 +214,12 @@ export async function startSocketServer(
214
214
  console.warn(`No SNI found in TLS hello from ${debug}, using main server. Packets ${packetCount}`);
215
215
  console.log(buffer.toString("base64"));
216
216
  }
217
+ if (sni) {
218
+ sni = sni.split(".").slice(-2).join(".");
219
+ }
220
+ if (!sniServers.has(sni)) {
221
+ console.warn(`No SNI server found for ${sni}, using main server.`);
222
+ }
217
223
  server = sniServers.get(sni) || mainHTTPSServer;
218
224
  }
219
225