diff --git a/scripts/pi-hole/lua/header_authenticated.lp b/scripts/pi-hole/lua/header_authenticated.lp
index fb2f96d3..f4a297f4 100644
--- a/scripts/pi-hole/lua/header_authenticated.lp
+++ b/scripts/pi-hole/lua/header_authenticated.lp
@@ -84,7 +84,7 @@ mg.include('header.lp','r')
Pi-hole Forum
GitHub
Pi-hole Releases
- if pihole.needLogin(mg.request_info.remote_addr) then ?>
+ if pihole.needLogin() then ?>
Log out
end ?>