Made VPN search case-insensitive

This commit is contained in:
Daniel Dayley 2020-07-20 16:55:56 -06:00
parent 28bb716019
commit eac5dfdcae

View File

@ -35,7 +35,7 @@ class ServiceDelegate(ServiceBase) :
connection.close()
def lookup(self,subject) :
search_command = 'sudo -S cat /var/log/openvpn/openvpn.log | grep \'primary virtual IP for\' | grep \'' + subject + '\' | tail -n 1'
search_command = 'sudo -S cat /var/log/openvpn/openvpn.log | grep \'primary virtual IP for\' | grep -i \'' + subject + '\' | tail -n 1'
final_dictionary = {}
for host,connection in self._connections.items() :
try: