Created
April 14, 2009 19:41
-
-
Save fixlr/95382 to your computer and use it in GitHub Desktop.
Simple modification to DSpace to allow IP-based authorization while Tomcat is behind a proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
184c184 | |
< String addr = request.getRemoteAddr(); | |
--- | |
> String addr = request.getHeader("x-real-ip"); | |
> if (addr == null) { | |
> addr = request.getRemoteAddr(); | |
> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment