Skip to content

Commit

Permalink
quick fix in subdomain extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanalicic committed Feb 8, 2022
1 parent f251b56 commit 58f73f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ private String getOriginHeaderValue(HttpServletRequest request) {
}

private boolean isUnderPublicDomain(String site) {
return InternetDomainName.isValid(site) && InternetDomainName.from(site).hasPublicSuffix();
log.info("Site is under public domain. Site: " + site);
//TODO: we must change it. just for testing
return InternetDomainName.isValid(site) && InternetDomainName.from(site).hasPublicSuffix()
&& !site.substring(site.length() - 4).equals("prod");
}

private Optional<String> getInternetDomainPrefix(String site) {
Expand Down

0 comments on commit 58f73f3

Please sign in to comment.