diff --git a/browse/routes/ui.py b/browse/routes/ui.py index 669fb1c6..7b195f88 100644 --- a/browse/routes/ui.py +++ b/browse/routes/ui.py @@ -150,7 +150,7 @@ def institutional_banner() -> Any: try: forwarded_ips = request.headers.getlist("X-Forwarded-For") if len(forwarded_ips)>0: - ip = forwarded_ips[0] + ip = str(forwarded_ips[0]).split(',')[0] else: ip = request.remote_addr result = get_institution(ip)