Brozy123 commited on
Commit
3df2352
·
verified ·
1 Parent(s): 77c13d9

Update hyper_fix.js

Browse files
Files changed (1) hide show
  1. hyper_fix.js +2 -2
hyper_fix.js CHANGED
@@ -15,8 +15,8 @@ console.log("[HYPER-FIX] Initializing deep connection tunnel...");
15
  dns.setDefaultResultOrder('ipv4first');
16
  try { dns.setServers(['1.1.1.1', '8.8.8.8']); } catch(e) {}
17
 
18
- // 2. Force TLS version compatibility
19
- tls.DEFAULT_MIN_VERSION = 'TLSv1.2';
20
  tls.DEFAULT_MIN_VERSION = 'TLSv1.2';
21
 
22
  // 3. Keep-alive helper
 
15
  dns.setDefaultResultOrder('ipv4first');
16
  try { dns.setServers(['1.1.1.1', '8.8.8.8']); } catch(e) {}
17
 
18
+ // 2. Global TLS override (Stop the "socket disconnected" error)
19
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
20
  tls.DEFAULT_MIN_VERSION = 'TLSv1.2';
21
 
22
  // 3. Keep-alive helper