Fix proxy check
This commit is contained in:
parent
eb5f65e3a1
commit
3ac2bfa0be
1 changed files with 3 additions and 0 deletions
3
auth.py
3
auth.py
|
@ -213,6 +213,9 @@ def post_auth(data):
|
|||
|
||||
# If proxified request
|
||||
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")
|
||||
return radiusd.RLM_MODULE_OK
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue