akra35567 commited on
Commit
c53e056
Β·
verified Β·
1 Parent(s): c6c710c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -1
index.js CHANGED
@@ -30,6 +30,10 @@
30
  * ═══════════════════════════════════════════════════════════════════════
31
  */
32
 
 
 
 
 
33
  // @ts-nocheck
34
  const express = require('express');
35
  const QRCode = require('qrcode');
@@ -524,7 +528,7 @@ function initializeServer() {
524
  body { background: #000; color: #ff4444; font-family: monospace; text-align: center; padding: 50px; }
525
  </style>
526
  </head>
527
- <body>
528
  <h1>❌ ERRO AO GERAR QR CODE</h1>
529
  <p>Ocorreu um erro ao processar o QR code:</p>
530
  <p><strong>${error.message}</strong></p>
 
30
  * ═══════════════════════════════════════════════════════════════════════
31
  */
32
 
33
+ // SOLUÇÃO CRÍTICA: ForΓ§a IPv4 no inΓ­cio do aplicativo principal
34
+ const dns = require('dns');
35
+ dns.setDefaultResultOrder('ipv4first');
36
+
37
  // @ts-nocheck
38
  const express = require('express');
39
  const QRCode = require('qrcode');
 
528
  body { background: #000; color: #ff4444; font-family: monospace; text-align: center; padding: 50px; }
529
  </style>
530
  </head>
531
+ <body>
532
  <h1>❌ ERRO AO GERAR QR CODE</h1>
533
  <p>Ocorreu um erro ao processar o QR code:</p>
534
  <p><strong>${error.message}</strong></p>