diff --git a/sanic/request.py b/sanic/request.py index 57b4773c..45a38c41 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -143,7 +143,7 @@ class Request(dict): @property def ip(self): if not hasattr(self, '_ip'): - self._ip = self.transport.get_extra_info('peername') + self._ip = self.transport.get_extra_info('peername') or (None, None) return self._ip @property