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