Fix isURL function to by pass url with localhost, when webhook is enable

This commit is contained in:
Helio Elias
2023-08-08 21:06:58 -03:00
parent 83ed0e6454
commit f32e259d2f
3 changed files with 1 additions and 32 deletions

View File

@@ -453,7 +453,7 @@ export class WAStartupService {
}
try {
if (this.localWebhook.enabled && isURL(this.localWebhook.url)) {
if (this.localWebhook.enabled && isURL(this.localWebhook.url, { require_tld: false })) {
const httpService = axios.create({ baseURL });
const postData = {
event,