Skip to content

Commit

Permalink
fix dmarc test
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Nov 27, 2024
1 parent da27569 commit c67a1ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/Auth/setEmailProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export async function setEmailProvider(this: AuthHandler, app: e.Express) {
}

const checkDmarc = async (websiteUrl: string) => {
const { host } = new URL(websiteUrl);
const { host, hostname } = new URL(websiteUrl);
const ignoredHosts = ["localhost", "127.0.0.1"]
if(!host || ignoredHosts.includes(host)){
if(!hostname || ignoredHosts.includes(hostname)){
return;
}
const dmarc = await promises.resolveTxt(`_dmarc.${host}`);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prostgles-server",
"version": "4.2.158",
"version": "4.2.159",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c67a1ea

Please sign in to comment.