Check whether the two arguments correspond to the same address

def sameAddr(self, ha, ha2) -> bool:
        """
        Check whether the two arguments correspond to the same address
        """
        if ha == ha2:
            return True
        if ha[1] != ha2[1]:
            return False
        return ha[0] in self.localips and ha2[0] in self.localips