Show FQDN rather than hostname.
This commit is contained in:
parent
a105543c38
commit
2768a5ad15
|
@ -148,8 +148,8 @@ class Root(NilmApp):
|
|||
@cherrypy.expose
|
||||
def index(self):
|
||||
cherrypy.response.headers['Content-Type'] = 'text/plain'
|
||||
msg = sprintf("This is NilmDB version %s, running on %s.\n",
|
||||
nilmdb.__version__, socket.gethostname())
|
||||
msg = sprintf("This is NilmDB version %s, running on host %s.\n",
|
||||
nilmdb.__version__, socket.getfqdn())
|
||||
return msg
|
||||
|
||||
# /favicon.ico
|
||||
|
|
Loading…
Reference in New Issue
Block a user