shogi-server source
Revisão | cf2de9ee2d6df9b55f12973146399e4079a589ae (tree) |
---|---|
Hora | 2013-12-15 11:44:50 |
Autor | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
Merge remote-tracking branch 'origin/master' into wdoor-stable
@@ -1,3 +1,14 @@ | ||
1 | +2013-12-15 Daigo Moriwaki <daigo at debian dot org> | |
2 | + | |
3 | + * [webserver] | |
4 | + - Listen on only IPv4 explicitly. Under ruby 1.9.3p194, without | |
5 | + any bind addresses, ruby attempts to listen on both "0.0.0.0" | |
6 | + and "::". Specifying "::" on Linux leads to listen on both IPv4 | |
7 | + and IPv6, which results in a warning message saying "Address | |
8 | + already in use - bind(2)". | |
9 | + * [shogi-server] | |
10 | + - Released: Revision "20131215" | |
11 | + | |
1 | 12 | 2013-12-13 Daigo Moriwaki <daigo at debian dot org> |
2 | 13 | |
3 | 14 | * [shogi-server] |
@@ -51,7 +51,7 @@ Default_Game_Name = "default-1500-0" | ||
51 | 51 | One_Time = 10 |
52 | 52 | Least_Time_Per_Move = 1 |
53 | 53 | Login_Time = 300 # time for LOGIN |
54 | -Revision = "20131104" | |
54 | +Revision = "20131215" | |
55 | 55 | |
56 | 56 | RELOAD_FILES = ["shogi_server/league/floodgate.rb", |
57 | 57 | "shogi_server/league/persistent.rb", |
@@ -151,6 +151,7 @@ def main | ||
151 | 151 | http_log_file = File.join($options["dir"], "shogi-server-httpd.log") |
152 | 152 | http_access_log_file = File.join($options["dir"], "shogi-server-access.log") |
153 | 153 | http_config = {} |
154 | + http_config[:BindAddress] = "0.0.0.0" | |
154 | 155 | http_config[:Port] = $options["port"] |
155 | 156 | http_config[:ServerType] = WEBrick::Daemon if $options["daemon"] |
156 | 157 | http_config[:Logger] = WEBrick::Log.new(http_log_file) |