From c2d7403157377de6956b5c34bf7ea61be769fd10 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 19 Nov 2017 20:17:17 +0000 Subject: [PATCH] Fix variable nas_type --- freeradius_utils/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freeradius_utils/auth.py b/freeradius_utils/auth.py index cf82e149..8e783862 100644 --- a/freeradius_utils/auth.py +++ b/freeradius_utils/auth.py @@ -148,6 +148,7 @@ def authorize(data): nas = data.get('NAS-IP-Address', data.get('NAS-Identifier', None)) nas_instance = find_nas_from_request(nas) # Toutes les reuquètes non proxifiées + nas_type = None if nas_instance: nas_type = Nas.objects.filter(nas_type=nas_instance.type).first() if not nas_type or nas_type.port_access_mode == '802.1X':