Browse Source

Show FQDN rather than hostname.

tags/nilmdb-1.7.1
Jim Paris 8 years ago
parent
commit
2768a5ad15
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nilmdb/server/server.py

+ 2
- 2
nilmdb/server/server.py 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


Loading…
Cancel
Save