diff src/plugins/plugin_misc_ip.py @ 2148:a543eda2c923

core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 20:43:20 +0100
parents 33c8c4973743
children 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_misc_ip.py	Sun Feb 12 19:23:34 2017 +0100
+++ b/src/plugins/plugin_misc_ip.py	Sun Feb 12 20:43:20 2017 +0100
@@ -254,8 +254,10 @@
         if self._external_ip_cache is not None:
             defer.returnValue(self._external_ip_cache)
 
+        client = self.host.getClient(profile)
+
         # we first try with XEP-0279
-        ip_check = yield self.host.hasFeature(NS_IP_CHECK, profile=profile)
+        ip_check = yield self.host.hasFeature(client, NS_IP_CHECK)
         if ip_check:
             log.debug(u"Server IP Check available, we use it to retrieve our IP")
             client = self.host.getClient(profile)