Skip to content

Commit

Permalink
Disable X-Forwarded-For warning temporarily
Browse files Browse the repository at this point in the history
Affects issues:
- Close #2967
  • Loading branch information
AuroraLS3 committed Sep 24, 2023
1 parent 6dada8e commit fa2c165
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ default String getAccessAddress(WebserverConfiguration webserverConfiguration) {
if (accessAddressPolicy == AccessAddressPolicy.X_FORWARDED_FOR_HEADER) {
@Untrusted String fromHeader = getAccessAddressFromHeader();
if (fromHeader == null) {
webserverConfiguration.getWebserverLogMessages().warnAboutXForwardedForSecurityIssue();
// TODO disabled temporarily
// webserverConfiguration.getWebserverLogMessages().warnAboutXForwardedForSecurityIssue();
return getAccessAddressFromSocketIp();
} else {
return fromHeader;
Expand Down

0 comments on commit fa2c165

Please sign in to comment.