Skip to content

Commit

Permalink
fix: try to fix case-sensitive DNS validity checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Nov 5, 2024
1 parent e197c72 commit 3542947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/dns/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const WEIRD_HOST_A_RECORD_REGEX = new RegExp(
`^([^\\.]*)\\.${escapeStringForEmbeddingInRegex(pubenv.PUBLIC_USER_DOMAIN_PARENT.split(':')[0])}$`
);
const VALID_DOMAIN_REGEX =
/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/;
/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/i;

const DNS_PORT = parseInt(env.DNS_PORT || '53');
const APP_IPS = env.APP_IPS.split(',');
Expand Down

0 comments on commit 3542947

Please sign in to comment.