X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=blobdiff_plain;f=webserver;h=1c5acbdf75c3047af9696a03c75567cee3e48c8d;hp=c1fabb5691864f4f87e78641063d35b37253bb79;hb=66e7c4522f3597aef4f23eabedd718734459a1e7;hpb=39513052c4fc30ada0cbc0e4b70753701c893ee5 diff --git a/webserver b/webserver index c1fabb5..1c5acbd 100755 --- a/webserver +++ b/webserver @@ -1,6 +1,6 @@ #!/usr/bin/ruby1.9.1 -## Copyright (C) 2007 Daigo Moriwaki +## Copyright (C) 2007-2012 Daigo Moriwaki ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -151,6 +151,7 @@ def main http_log_file = File.join($options["dir"], "shogi-server-httpd.log") http_access_log_file = File.join($options["dir"], "shogi-server-access.log") http_config = {} + http_config[:BindAddress] = "0.0.0.0" http_config[:Port] = $options["port"] http_config[:ServerType] = WEBrick::Daemon if $options["daemon"] http_config[:Logger] = WEBrick::Log.new(http_log_file)