Merge pull request #57 from helioelias/main

Fix: For webhook to work with localhost
This commit is contained in:
Davidson Gomes
2023-08-29 11:15:08 -03:00
committed by GitHub
5 changed files with 225 additions and 1 deletions

View File

@@ -750,7 +750,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,