moved multicast template to end of config template
@@ -690,10 +690,6 @@ static int core_config_template(struct re_printf *pf, const struct config *cfg)
"#dns_server\t\t1.0.0.1:53\n"
"#dns_fallback\t\t8.8.8.8:53\n"
"#net_interface\t\t%H\n"
- "\n"
- "# multicasting - last octet should be even\n"
- "#multicast_listener\t\t224.0.2.22"
- "\n"
"# Play tones\n"
"#file_ausrc\t\taufile\n"
"#file_srate\t\t16000\n"
@@ -1077,9 +1073,12 @@ int config_write_template(const char *file, const struct config *cfg)
"#httpreq_dns\t\t8.8.8.8\n"
"#httpreq_hostname\tmyserver\n"
"#httpreq_cert\t\tcert.pem\n"
- "# httpreq_key\t\tkey.pem\n"
- );
-
+ "#httpreq_key\t\tkey.pem\n");
+ (void)re_fprintf(f,
+ "\n# multicast receivers (in priority order) - port number must be even\n"
+ "#multicast_listener\t\t224.0.2.21:50000\n"
+ "#multicast_listener\t\t224.0.2.21:50002\n"
+ "\n");
if (f)
(void)fclose(f);
