Made VPN search case-insensitive
This commit is contained in:
parent
28bb716019
commit
eac5dfdcae
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user