Skip to content

Commit

Permalink
Update proxy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
roelbroersma authored Jun 8, 2024
1 parent 79e1878 commit d90ac9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if [ $? -eq 1 ]; then
else
# BECAUSE THE RECEIVER MIGHT HAVE MULTIPLE INTERFACES, WE NEED TO MAKE SURE TO ROUTE OUT THE MULTICAST VIA THE CORRECT INTERFACE (WHICH IS THE $FROM_IP_OR_INTERFACE).
# (NOTE THAT THIS ROUTE WILL BE APPLIED TO THE WHOLE HOST BECAUSE IT USES THE HOST NETWORK INTERFACE)
echo "Adding route to this multicast address via $FROM_IP_OR_INTERFACE."
echo "Adding route to $MULTICAST_ADDRESS via $FROM_IP_OR_INTERFACE..."
if echo "$FROM_IP_OR_INTERFACE" | grep -Eq '^([0-9]{1,3}\.){3}[0-9]{1,3}$'; then
route add -host $MULTICAST_ADDRESS gw $FROM_IP_OR_INTERFACE
else
Expand Down

0 comments on commit d90ac9e

Please sign in to comment.