From d8144eb0dee20102e72f747f569065468e10f33f Mon Sep 17 00:00:00 2001 From: waynieack Date: Tue, 7 Mar 2017 20:29:54 -0600 Subject: [PATCH] Fix for specifying a multicast interface when a specific interface is defined in the mh.private.ini with the alexaHttpIp option. --- lib/AlexaBridge.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/AlexaBridge.pm b/lib/AlexaBridge.pm index ebf44ab69..9e7cfcc0d 100644 --- a/lib/AlexaBridge.pm +++ b/lib/AlexaBridge.pm @@ -378,7 +378,13 @@ sub _constant { sub _mcast_add { my ( $sock, $addr ) = @_; - my $ip_mreq = inet_aton( $addr ) . INADDR_ANY; + my $ip_mreq; + if (defined $::config_parms{'alexaHttpIp'}) { + $ip_mreq = inet_aton($::config_parms{'alexaHttpIp'}); + } else { + $ip_mreq = inet_aton('0.0.0.0'); + } + $ip_mreq = inet_aton( $addr ) . $ip_mreq; setsockopt( $sock,