From 404c6e4f954b5a43ce68515eedeb7e649bfe025a Mon Sep 17 00:00:00 2001 From: Stefan Midjich Date: Mon, 20 Nov 2017 22:38:47 +0100 Subject: [PATCH] protocol no longer needed with ipset --- portalclientlib/storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portalclientlib/storage.py b/portalclientlib/storage.py index 3132c21..504bd6e 100644 --- a/portalclientlib/storage.py +++ b/portalclientlib/storage.py @@ -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()