debug statement
This commit is contained in:
parent
1847f13471
commit
19013c6da2
12
hblink.py
12
hblink.py
@ -119,6 +119,15 @@ def hblink_handler(_signal, _frame):
|
|||||||
# on matching and the action specified.
|
# on matching and the action specified.
|
||||||
def acl_check(_id, _acl):
|
def acl_check(_id, _acl):
|
||||||
id = int_id(_id)
|
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]:
|
for entry in _acl[1]:
|
||||||
if entry[0] <= id <= entry[1]:
|
if entry[0] <= id <= entry[1]:
|
||||||
return _acl[0]
|
return _acl[0]
|
||||||
@ -346,10 +355,11 @@ class HBSYSTEM(DatagramProtocol):
|
|||||||
try:
|
try:
|
||||||
req = requests.post(user_man_url, data=json_object, headers={'Content-Type': 'application/json'})
|
req = requests.post(user_man_url, data=json_object, headers={'Content-Type': 'application/json'})
|
||||||
resp = json.loads(req.text)
|
resp = json.loads(req.text)
|
||||||
## print(resp)
|
print(resp)
|
||||||
return resp
|
return resp
|
||||||
except requests.ConnectionError:
|
except requests.ConnectionError:
|
||||||
return {'allow':True}
|
return {'allow':True}
|
||||||
|
|
||||||
# Sends login confirmation for log
|
# Sends login confirmation for log
|
||||||
def send_login_conf(self, _id, server_name, peer_ip, old_auth):
|
def send_login_conf(self, _id, server_name, peer_ip, old_auth):
|
||||||
#Change this to a config value
|
#Change this to a config value
|
||||||
|
Loading…
Reference in New Issue
Block a user