doc string added

This commit is contained in:
Oliver Wieland 2013-09-08 21:24:53 +02:00
parent c0d19ec840
commit 86c37481ab

View File

@ -213,6 +213,11 @@ class RemoteTab(SettingsTab):
self.live_https_url.setText('<a href="%s">%s</a>' % (https_url_temp, https_url_temp))
def get_ip_address(self, ip_address):
"""
returns the IP address in dependency of the passed address
ip_address == 0.0.0.0: return the IP address of the first valid interface
else: return ip_address
"""
if ip_address == ZERO_URL:
interfaces = QtNetwork.QNetworkInterface.allInterfaces()
for interface in interfaces: