1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 09:49:17 +02:00

zmq ZMQ_IPV6 option set

This commit is contained in:
aokhotin 2018-09-10 22:02:06 +03:00
parent c8734eb5d5
commit 4ef05e91bb

View file

@ -11,7 +11,7 @@ var log = require('./logger').createLogger('util:zmqutil')
module.exports.socket = function() {
var sock = zmq.socket.apply(zmq, arguments)
;['ZMQ_TCP_KEEPALIVE', 'ZMQ_TCP_KEEPALIVE_IDLE'].forEach(function(opt) {
;['ZMQ_TCP_KEEPALIVE', 'ZMQ_TCP_KEEPALIVE_IDLE', 'ZMQ_IPV6'].forEach(function(opt) {
if (process.env[opt]) {
try {
sock.setsockopt(zmq[opt], Number(process.env[opt]))