diff --git a/butterfly/__init__.py b/butterfly/__init__.py
index 7337c36..372b66b 100644
--- a/butterfly/__init__.py
+++ b/butterfly/__init__.py
@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-__version__ = '2.0.6'
+__version__ = '2.0.7'
import os
diff --git a/butterfly/utils.py b/butterfly/utils.py
index 796bbab..6657dfe 100644
--- a/butterfly/utils.py
+++ b/butterfly/utils.py
@@ -177,7 +177,8 @@ class Socket(object):
@property
def local(self):
- return self.remote_addr in ['127.0.0.1', '::1', '::ffff:127.0.0.1']
+ return (self.remote_addr in ['127.0.0.1', '::1', '::ffff:127.0.0.1'] or
+ self.local_addr == self.remote_addr)
def __repr__(self):
return '' % (