ws: Hostname is already a byte string

This commit is contained in:
Thomas Adamcik 2013-04-25 22:53:26 +02:00
parent e7d2a5f384
commit b8ce1e828a

View File

@ -30,8 +30,7 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
def _setup_server(self):
cherrypy.config.update({
'engine.autoreload_on': False,
'server.socket_host': (
self.config['http']['hostname'].encode('utf-8')),
'server.socket_host': self.config['http']['hostname'],
'server.socket_port': self.config['http']['port'],
})