diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2006-01-21 00:13:01 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2006-01-21 00:13:01 +0000 |
commit | 9dfa1e044da46bb6672018583ccb4fb77d75b004 (patch) | |
tree | 67e5f7568b05c271e644b2c1c1dd0a670fdbdb3a /plugins | |
parent | 2eaed15aa9c5a335d0e4b4f21ce0d5a44817ab26 (diff) |
* use hostname instead of ip if nss-mdns is available
git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@86 3be567f1-68ff-0310-b24a-ad7cc433fd2f
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gnometerminal.py | 4 | ||||
-rw-r--r-- | plugins/nautilus.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/gnometerminal.py b/plugins/gnometerminal.py index d97a320..01fd83f 100644 --- a/plugins/gnometerminal.py +++ b/plugins/gnometerminal.py @@ -95,7 +95,9 @@ class plugin_gnometerminal: return store - def connect(self, name, stype, hostname, address, port, txts): + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + if use_host_names == True: + address = hostname print "connecting using gnometerminal" if txts.has_key("u"): username = self.SshLogin(name, txts["u"]) diff --git a/plugins/nautilus.py b/plugins/nautilus.py index e208a8c..4cf82a2 100644 --- a/plugins/nautilus.py +++ b/plugins/nautilus.py @@ -22,7 +22,9 @@ class plugin_nautilus: self.author = "Sébastien Estienne" self.description = "Accessing zeroconf services using Nautilus" - def connect(self, name, stype, hostname, address, port, txts): + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + if use_host_names == True: + address = hostname print "connecting using nautilus" path = get_txt_value(txts,"path") username = get_txt_value(txts,"u") |