shogi-server source
Révision | 926c61bfec83388874d12f181bcf1b8596b420ab (tree) |
---|---|
l'heure | 2013-11-24 18:20:10 |
Auteur | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
* [shogi-server] - shogi-server: any bind addresses, ruby attempts to listen on both "0.0.0.0" and "::".
Specifying "::" on Linux leads to listen on both IPv4 and IPv6, which
results in a warning message saying "Address already in use - bind(2)".
@@ -3,8 +3,14 @@ | ||
3 | 3 | * [shogi-server] |
4 | 4 | - shogi_server/league/floodgate.rb: Improved robustness against |
5 | 5 | empty file under ruby 1.9.3p194 |
6 | - - shogi-server: Previously, reloading in daemon mode failed on | |
7 | - ruby 1.9.3p194. This issue has been fixed. | |
6 | + - shogi-server: | |
7 | + - Previously, reloading in daemon mode failed on | |
8 | + ruby 1.9.3p194. This issue has been fixed. | |
9 | + - Listen on only IPv4 explicitly. Under ruby 1.9.3p194, without | |
10 | + any bind addresses, ruby attempts to listen on both "0.0.0.0" | |
11 | + and "::". Specifying "::" on Linux leads to listen on both IPv4 | |
12 | + and IPv6, which results in a warning message saying "Address | |
13 | + already in use - bind(2)". | |
8 | 14 | * [mk_game_results] |
9 | 15 | - Fixed for reading Japanese comments under ruby1.9.3p194. |
10 | 16 |
@@ -372,6 +372,7 @@ def main | ||
372 | 372 | $league.dir = $topdir |
373 | 373 | |
374 | 374 | config = {} |
375 | + config[:BindAddress] = "0.0.0.0" | |
375 | 376 | config[:Port] = port |
376 | 377 | config[:ServerType] = WEBrick::Daemon if $options["daemon"] |
377 | 378 | config[:Logger] = $logger |