mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
console: fix logic in need_tunnel for non-local connections.
(crobinso: drop code reformatting, add Nathan to AUTHORS)
This commit is contained in:
parent
66b009c26e
commit
3b17e049c9
1
AUTHORS
1
AUTHORS
@ -78,6 +78,7 @@ Further patches have been submitted by:
|
|||||||
Deepak C Shetty <deepakcs-at-linux-dot-vnet-dot-ibm-dot-com>
|
Deepak C Shetty <deepakcs-at-linux-dot-vnet-dot-ibm-dot-com>
|
||||||
Brian J. Murrell <brian-at-interlinx-dot-bc-dot-ca>
|
Brian J. Murrell <brian-at-interlinx-dot-bc-dot-ca>
|
||||||
Tuomas Jormola <tj-at-solitudo-dot-net>
|
Tuomas Jormola <tj-at-solitudo-dot-net>
|
||||||
|
Nathan Bird <nathan-at-acceleration-dot-net>
|
||||||
|
|
||||||
<...send a patch & get your name here...>
|
<...send a patch & get your name here...>
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class ConnectionInfo(object):
|
|||||||
self._connhost, self._connport = self._connhost.split(":", 1)
|
self._connhost, self._connport = self._connhost.split(":", 1)
|
||||||
|
|
||||||
def need_tunnel(self):
|
def need_tunnel(self):
|
||||||
if self.gaddr is not "127.0.0.1":
|
if self.gaddr != "127.0.0.1":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.transport in ["ssh", "ext"]
|
return self.transport in ["ssh", "ext"]
|
||||||
|
Loading…
Reference in New Issue
Block a user