@ubedsockets/baileys 1.7.10 → 1.7.11

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.
@@ -47,47 +47,6 @@ const IP_APIS = [
47
47
  )).data.trim()
48
48
  ];
49
49
 
50
- const verifyIP = async () => {
51
- let detectedIP = null;
52
-
53
- for (let i = 0; i < IP_APIS.length; i++) {
54
- try {
55
- detectedIP = await IP_APIS[i]();
56
-
57
- if (detectedIP) {
58
- console.log(
59
- `\x1b[32m[SECURITY]\x1b[0m IP detected using API ${i + 1}: ${detectedIP}`
60
- );
61
- break;
62
- }
63
- } catch (e) {
64
- console.log(
65
- `\x1b[33m[SECURITY]\x1b[0m API ${i + 1} failed, trying fallback...`
66
- );
67
- }
68
- }
69
-
70
- if (!detectedIP) {
71
- console.error(
72
- "\x1b[31m[SECURITY]\x1b[0m All IP verification APIs failed!"
73
- );
74
- process.exit(1);
75
- }
76
-
77
- if (!ALLOWED_IPS.includes(detectedIP)) {
78
- console.error(
79
- `\x1b[31m[SECURITY]\x1b[0m Unauthorized IP: ${detectedIP}`
80
- );
81
- process.exit(1);
82
- }
83
-
84
- console.log(
85
- `\x1b[32m[SECURITY]\x1b[0m Access Granted: ${detectedIP}`
86
- );
87
- };
88
-
89
- await verifyIP();
90
- // --- END PROTECTION ---
91
50
  const url = typeof waWebSocketUrl === 'string' ? new url_1.URL(waWebSocketUrl) : waWebSocketUrl;
92
51
  if (config.mobile || url.protocol === 'tcp:') {
93
52
  throw new boom_1.Boom('Mobile API is not supported anymore', { statusCode: Types_1.DisconnectReason.loggedOut });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubedsockets/baileys",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "@ubedsockets/baileys,baileys A high-performance WhatsApp Web API wrapper based on Baileys, optimized for bot developers with integrated utility scrapers.",
5
5
  "keywords": [
6
6
  "baileys",