OSDN Git Service

[shogi-server] Support listening on IPv6 addresses
authorDaigo Moriwaki <beatles@sgtpepper.net>
Sun, 6 Dec 2020 08:58:33 +0000 (17:58 +0900)
committerDaigo Moriwaki <beatles@sgtpepper.net>
Sun, 6 Dec 2020 08:58:33 +0000 (17:58 +0900)
Thanks to mizar for a patch.
(Closes #40822)

changelog
shogi-server

index 7f56b1f..14e0e1c 100644 (file)
--- a/changelog
+++ b/changelog
@@ -5,6 +5,9 @@
          alive messages as well.
          Thanks to mizar for reports and patches.
          (Closes #40821)
+       * [shogi-server] Support listening on IPv6 addresses
+         Thanks to mizar for a patch.
+         (Closes #40822)
 
 2020-10-04  Daigo Moriwaki <daigo at debian dot org>
 
index a436628..e78d421 100755 (executable)
@@ -440,7 +440,7 @@ def main
   $players = Set.new
 
   config = {}
-  config[:BindAddress] = "0.0.0.0"
+  config[:BindAddress] = nil # both IPv4 and IPv6
   config[:Port]       = port
   config[:ServerType] = WEBrick::Daemon if $options["daemon"]
   config[:Logger]     = $logger