console: fix logic in need_tunnel for non-local connections.

(crobinso: drop code reformatting, add Nathan to AUTHORS)
This commit is contained in:
Nathan Bird 2012-04-04 17:55:09 -04:00 committed by Cole Robinson
parent 66b009c26e
commit 3b17e049c9
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ Further patches have been submitted by:
Deepak C Shetty <deepakcs-at-linux-dot-vnet-dot-ibm-dot-com>
Brian J. Murrell <brian-at-interlinx-dot-bc-dot-ca>
Tuomas Jormola <tj-at-solitudo-dot-net>
Nathan Bird <nathan-at-acceleration-dot-net>
<...send a patch & get your name here...>

View File

@ -73,7 +73,7 @@ class ConnectionInfo(object):
self._connhost, self._connport = self._connhost.split(":", 1)
def need_tunnel(self):
if self.gaddr is not "127.0.0.1":
if self.gaddr != "127.0.0.1":
return False
return self.transport in ["ssh", "ext"]