From 5ed68bced466c49dfba96da3749240c389244467 Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Fri, 3 Mar 2017 01:03:56 +0100 Subject: [PATCH] minor comment --- plugins/iptables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/iptables.py b/plugins/iptables.py index f6a62db..be08f35 100644 --- a/plugins/iptables.py +++ b/plugins/iptables.py @@ -43,7 +43,8 @@ def run(arg): l.setLevel(DEBUG) l.debug('debug logging enabled') - # Get client IP from webapp + # Get client IP from webapp, try HTTP_X_FORWARDED_FOR and fallback on + # REMOTE_ADDR. client_ip = environ.get( 'HTTP_X_FORWARDED_FOR', environ.get('REMOTE_ADDR')