Fix proxy check

This commit is contained in:
chapeau 2024-03-23 09:05:37 +01:00
parent eb5f65e3a1
commit 3ac2bfa0be

View file

@ -213,6 +213,9 @@ def post_auth(data):
# If proxified request # If proxified request
if not nas_type: if not nas_type:
if not user or not user["access"]:
logger.info("Proxified request: %s has no internet access" % (username))
return radiusd.RLM_MODULE_REJECT
logger.info("Proxified request, nas unknown") logger.info("Proxified request, nas unknown")
return radiusd.RLM_MODULE_OK return radiusd.RLM_MODULE_OK