fix: ip string out of bounds bug

This commit is contained in:
lifeadventurer
2023-11-19 00:34:46 +08:00
parent aeed959391
commit 7363d36570

View File

@@ -59,7 +59,7 @@ function Appear() {
// transform ip to four numbers
let p = 0;
let num = [0, 0, 0, 0];
for(let i = 0; i < 14; i++) {
for(let i = 0; i < ip.length; i++) {
if(ip[i] == '.') {
p++;
continue;