[Debian-ha-commits] [pcs] 08/10: Fix pcsd listening on IPv6 only
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Fri Jun 17 11:35:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository pcs.
commit e9fae611ff79be305fe6b2096547052e69eabca6
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Fri Jun 17 12:47:42 2016 +0200
Fix pcsd listening on IPv6 only
---
debian/patches/0007-Fix-IPv6-bind.patch | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/0007-Fix-IPv6-bind.patch b/debian/patches/0007-Fix-IPv6-bind.patch
new file mode 100644
index 0000000..45ba703
--- /dev/null
+++ b/debian/patches/0007-Fix-IPv6-bind.patch
@@ -0,0 +1,13 @@
+--- a/pcsd/ssl.rb
++++ b/pcsd/ssl.rb
+@@ -106,6 +106,10 @@
+ end
+ end
+
++if primary_addr == '::' and RUBY_VERSION >= '2.1'
++ primary_addr = nil
++end
++
+ webrick_options = {
+ :Port => 2224,
+ :BindAddress => primary_addr,
diff --git a/debian/patches/series b/debian/patches/series
index 160fe45..06491b1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+0007-Fix-IPv6-bind.patch
0001-Remove-Gemlock.file-on-Debian.patch
0002-Remove-require-in-pcsd-ssl.rb.patch
0004-Remove-pcsd-test-.gitignore-file.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pcs.git
More information about the Debian-HA-Commits
mailing list