mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
protocol no longer needed with ipset
This commit is contained in:
parent
72d21f7e6b
commit
404c6e4f95
1 changed files with 3 additions and 3 deletions
|
@ -48,14 +48,14 @@ class StoragePostgres(object):
|
|||
return self.cur.fetchone()
|
||||
|
||||
|
||||
def get_client(self, ip_address, protocol):
|
||||
def get_client(self, ip_address):
|
||||
"""
|
||||
Expects an ipaddress.IPv4Interface as ip_address argument.
|
||||
"""
|
||||
|
||||
self.cur.execute(
|
||||
'select * from authenticated_clients where ip_address=%s and protocol=%s',
|
||||
(ip_address, protocol, )
|
||||
'select * from authenticated_clients where ip_address=%s',
|
||||
(ip_address, )
|
||||
)
|
||||
return self.cur.fetchone()
|
||||
|
||||
|
|
Loading…
Reference in a new issue