Agent: Use == to compare OperatingSystems enum

This commit is contained in:
Ilija Lazoroski 2022-06-24 10:18:51 +02:00
parent 2ff2e5f597
commit f9445a2c76
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class VictimHost(object):
return self.__dict__
def is_windows(self) -> bool:
return OperatingSystems.WINDOWS in self.os["type"]
return OperatingSystems.WINDOWS == self.os["type"]
def __hash__(self):
return hash(self.ip_addr)