diff --git a/adhoccomputing/Generics.py b/adhoccomputing/Generics.py index 399f482..26f9877 100644 --- a/adhoccomputing/Generics.py +++ b/adhoccomputing/Generics.py @@ -32,7 +32,7 @@ def __init__(self, messagetype, messagefrom, messageto, nexthop=float('inf'), in self.interfaceid = interfaceid self.sequencenumber = sequencenumber def __str__(self) -> str: - return f"GenericMessageHeader: TYPE: {self.messagetype} FROM: {self.messagefrom} TO: {self.messagefrom} NEXTHOP: {self.nexthop} INTERFACEID: {self.interfaceid} SEQUENCE#: {self.sequencenumber}" + return f"GenericMessageHeader: TYPE: {self.messagetype} FROM: {self.messagefrom} TO: {self.messageto} NEXTHOP: {self.nexthop} INTERFACEID: {self.interfaceid} SEQUENCE#: {self.sequencenumber}" class EventTypes(Enum): INIT = "init"