Show FQDN rather than hostname.

This commit is contained in:
Jim Paris 2013-05-09 13:33:05 -04:00
parent a105543c38
commit 2768a5ad15

View File

@ -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