Support setting TTL on outgoing UDP streams. Especially useful for multicast.
[cubemap] / main.cpp
index 5ba79f9..eaec887 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -201,7 +201,10 @@ void create_streams(const Config &config,
        // UDP streams.
        for (unsigned i = 0; i < config.udpstreams.size(); ++i) {
                const UDPStreamConfig &udpstream_config = config.udpstreams[i];
-               int stream_index = servers->add_udpstream(udpstream_config.dst, udpstream_config.pacing_rate);
+               int stream_index = servers->add_udpstream(
+                       udpstream_config.dst,
+                       udpstream_config.pacing_rate,
+                       udpstream_config.ttl);
 
                string src = udpstream_config.src;
                if (!src.empty()) {