From 19013c6da2806b01c13038210aac08026eebff03 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Thu, 7 Oct 2021 12:27:30 -0700 Subject: [PATCH] debug statement --- hblink.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hblink.py b/hblink.py index 32da2b0..89d49b9 100755 --- a/hblink.py +++ b/hblink.py @@ -119,6 +119,15 @@ def hblink_handler(_signal, _frame): # on matching and the action specified. def acl_check(_id, _acl): id = int_id(_id) + + print() + print(type(entry[0])) + print(entry[0]) + print(type(entry[0])) + print(entry[1]) + print(id) + print() + for entry in _acl[1]: if entry[0] <= id <= entry[1]: return _acl[0] @@ -346,10 +355,11 @@ class HBSYSTEM(DatagramProtocol): try: req = requests.post(user_man_url, data=json_object, headers={'Content-Type': 'application/json'}) resp = json.loads(req.text) -## print(resp) + print(resp) return resp except requests.ConnectionError: return {'allow':True} + # Sends login confirmation for log def send_login_conf(self, _id, server_name, peer_ip, old_auth): #Change this to a config value