--- a/src/mediaserver/cdplugins/uprcl/uprclutils.py
+++ b/src/mediaserver/cdplugins/uprcl/uprclutils.py
@@ -404,6 +404,8 @@
# approach, only works on Linux though (maybe bsd too ?)
def findmyip():
data = subprocess.check_output(["ip", "addr"])
+ if PY3:
+ data = data.decode('utf-8')
l = data.split()
ips = []
chosenip = ""
@@ -414,7 +416,7 @@
if ipmask.find('127.') == 0:
continue
return ipmask.split('/')[0]
-
+ return '127.0.0.1'
# Open embedded image. Returns mtype, size, f
def embedded_open(path):