From: Darren Date: Sun, 27 Oct 2013 10:28:41 +0000 (+0000) Subject: Restoring conf.public_http config option for backwards compatibility X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ceb43091dc4dd4536ceae3525d0e5928bb3beb65;p=KiwiIRC.git Restoring conf.public_http config option for backwards compatibility --- diff --git a/config.example.js b/config.example.js index 2e7cc5f..a86fdb1 100644 --- a/config.example.js +++ b/config.example.js @@ -53,7 +53,7 @@ conf.identd = { // Where the client files are -conf.public_html = "client/"; +conf.public_http = "client/"; // Max connections per connection. 0 to disable conf.max_client_conns = 5; diff --git a/server/httphandler.js b/server/httphandler.js index 7073133..ee8b7e1 100644 --- a/server/httphandler.js +++ b/server/httphandler.js @@ -28,8 +28,8 @@ config.on('loaded', function () { var HttpHandler = function (config) { - var public_html = config.public_html || 'client/'; - this.file_server = new node_static.Server(public_html); + var public_http = config.public_http || 'client/'; + this.file_server = new node_static.Server(public_http); }; module.exports.HttpHandler = HttpHandler;