This commit is contained in:
midoks
2018-12-13 01:28:54 +08:00
parent 34bcdd915c
commit 5e8a15c230
3 changed files with 7 additions and 11 deletions
+1 -7
View File
@@ -368,13 +368,7 @@ def getLocalIp():
ipaddress = re.search('\d+.\d+.\d+.\d+', ipaddress).group(0)
return ipaddress
except:
pass
# try:
# url = web.ctx.session.home + '/Api/getIpAddress'
# opener = urllib2.urlopen(url)
# return opener.read()
# except:
# return web.ctx.host.split(':')[0]
return '127.0.0.1'
def inArray(arrays, searchStr):