This commit is contained in:
parent
e5b9d45a59
commit
0ee0ac4936
2
main.py
2
main.py
|
@ -60,7 +60,7 @@ class CloudInitApp:
|
||||||
try:
|
try:
|
||||||
self.hostinfo = socket.gethostbyaddr(self.remoteip)
|
self.hostinfo = socket.gethostbyaddr(self.remoteip)
|
||||||
except socket.herror:
|
except socket.herror:
|
||||||
pass
|
self.hostinfo = ('localhost', )
|
||||||
|
|
||||||
def _redirect_if_needed(self):
|
def _redirect_if_needed(self):
|
||||||
filepath = os.path.join(PATH, "data", self.hostinfo[0],
|
filepath = os.path.join(PATH, "data", self.hostinfo[0],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user