more sound checks

This commit is contained in:
MathMan05
2025-12-15 15:18:17 -06:00
parent 31936b68ee
commit da45638187
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -614,7 +614,7 @@ class Localuser {
break;
}
case 5: {
const breakappart = new URL(this.info.wellknown).origin.split(".");
const breakappart = new URL(this.info.wellknown).host.split(".");
const url = "https://" + breakappart.at(-2) + "." + breakappart.at(-1);
const newurls = await getapiurls(url);
if (newurls) {
+1 -1
View File
@@ -469,7 +469,7 @@ export async function getapiurls(str: string): Promise<
};
}
}
} else {
} else if (!str.match(/^https?:\/\//gm)) {
str = "https://" + str;
}
}