devcode-canavar-pro 3.3.1 → 3.3.2
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/bin/devcode.js +1 -1
- package/lib/Dashboard.js +10 -0
- package/package.json +1 -1
package/bin/devcode.js
CHANGED
|
@@ -22,7 +22,7 @@ console.log(`
|
|
|
22
22
|
██║ ██║██╔══╝ ╚██╗ ██╔╝██║ ██║ ██║██║ ██║██╔══╝
|
|
23
23
|
██████╔╝███████╗ ╚████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗
|
|
24
24
|
╚═════╝ ╚══════╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝\x1b[0m
|
|
25
|
-
\x1b[32m--- ELITE MONSTER PRO v3.3.
|
|
25
|
+
\x1b[32m--- ELITE MONSTER PRO v3.3.2 ---\x1b[0m
|
|
26
26
|
`);
|
|
27
27
|
|
|
28
28
|
function getParam(name) {
|
package/lib/Dashboard.js
CHANGED
|
@@ -108,6 +108,16 @@ class Dashboard {
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
+
this.server.on('error', (err) => {
|
|
112
|
+
if (err.code === 'EADDRINUSE') {
|
|
113
|
+
console.log(`\x1b[33m[DevCode Dashboard]\x1b[0m Port ${this.port} dolu, ${this.port + 1} deneniyor...`);
|
|
114
|
+
this.port++;
|
|
115
|
+
this.server.listen(this.port, '0.0.0.0');
|
|
116
|
+
} else {
|
|
117
|
+
console.error(`\x1b[31m[DevCode Dashboard] Sunucu Hatası:\x1b[0m`, err);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
111
121
|
this.server.listen(this.port, '0.0.0.0', () => {
|
|
112
122
|
console.log(`\x1b[32m[DevCode Dashboard]\x1b[0m Panel aktif → \x1b[36mhttp://0.0.0.0:${this.port}\x1b[0m`);
|
|
113
123
|
});
|
package/package.json
CHANGED