• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revision926c61bfec83388874d12f181bcf1b8596b420ab (tree)
Zeit2013-11-24 18:20:10
AutorDaigo Moriwaki <daigo@debi...>
CommiterDaigo Moriwaki

Log Message

* [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)".

Ändern Zusammenfassung

Diff

--- a/changelog
+++ b/changelog
@@ -3,8 +3,14 @@
33 * [shogi-server]
44 - shogi_server/league/floodgate.rb: Improved robustness against
55 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)".
814 * [mk_game_results]
915 - Fixed for reading Japanese comments under ruby1.9.3p194.
1016
--- a/shogi-server
+++ b/shogi-server
@@ -372,6 +372,7 @@ def main
372372 $league.dir = $topdir
373373
374374 config = {}
375+ config[:BindAddress] = "0.0.0.0"
375376 config[:Port] = port
376377 config[:ServerType] = WEBrick::Daemon if $options["daemon"]
377378 config[:Logger] = $logger