forked from p34709852/monkey
Agent: Use == to compare OperatingSystems enum
This commit is contained in:
parent
2ff2e5f597
commit
f9445a2c76
|
@ -17,7 +17,7 @@ class VictimHost(object):
|
||||||
return self.__dict__
|
return self.__dict__
|
||||||
|
|
||||||
def is_windows(self) -> bool:
|
def is_windows(self) -> bool:
|
||||||
return OperatingSystems.WINDOWS in self.os["type"]
|
return OperatingSystems.WINDOWS == self.os["type"]
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.ip_addr)
|
return hash(self.ip_addr)
|
||||||
|
|
Loading…
Reference in New Issue