YUKI Hiroshi
null+****@clear*****
Tue Nov 4 13:08:47 JST 2014
YUKI Hiroshi 2014-11-04 13:08:47 +0900 (Tue, 04 Nov 2014) New Revision: d388fa6b73d9466f93346db92cc566c5c8a3172f https://github.com/droonga/droonga-http-server/commit/d388fa6b73d9466f93346db92cc566c5c8a3172f Message: Add inverted options for --daemon and --enable-trust-proxy (#7) Modified files: lib/server-options.js Modified: lib/server-options.js (+12 -0) =================================================================== --- lib/server-options.js 2014-11-03 10:24:42 +0900 (c226c1e) +++ lib/server-options.js 2014-11-04 13:08:47 +0900 (de12bbc) @@ -122,6 +122,12 @@ function define() { generateOptionHandler(function() { options.enableTrustProxyGiven = true; })); + add('--disable-trust-proxy', + 'Inverted option of --enable-trust-proxy.', + generateOptionHandler(function(newValue) { + options.enableTrustProxy = !newValue; + options.enableTrustProxyGiven = true; + })); add('--plugins <plugin1,plugin2,...>', 'Use specified plugins. ' + '(' + options.plugins.join(',') + ')', @@ -133,6 +139,12 @@ function define() { generateOptionHandler(function() { options.daemonGiven = true; })); + add('--no-daemon', + 'Inverted option of --daemon.', + generateOptionHandler(function(newValue) { + options.daemon = !newValue; + options.daemonGiven = true; + })); add('--pid-file <pid-file>', 'Output PID to <pid-file>.', generateOptionHandler(function() { -------------- next part -------------- HTML����������������������������... Télécharger