aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/advanced.mux2
-rw-r--r--src/dabOutput/dabOutputUdp.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/advanced.mux b/doc/advanced.mux
index 7714909..0db8c02 100644
--- a/doc/advanced.mux
+++ b/doc/advanced.mux
@@ -437,7 +437,7 @@ outputs {
; UDP send to host:port, simple example for unicast
;net_udp "udp://host:port"
; example with source and TTL specification for multicast
- ;net_udp "udp://237.10.0.230:7000?src=10.0.1.125,ttl=1"
+ ;net_udp "udp://237.10.0.230:7000?src=10.0.1.125&ttl=1"
; RAW for farsync ETI card
;farsync "raw://sync0"
diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp
index 9d3ea84..20e0c40 100644
--- a/src/dabOutput/dabOutputUdp.cpp
+++ b/src/dabOutput/dabOutputUdp.cpp
@@ -59,7 +59,7 @@ int DabOutputUdp::Open(const char* name)
const string uri_without_proto(name);
regex re_url("([^:]+):([0-9]+)(.*)");
- regex re_query("[?](?:src=([^,]+))(?:,ttl=([0-9]+))?");
+ regex re_query("[?](?:src=([^&,]+))(?:[&,]ttl=([0-9]+))?");
smatch what;
if (regex_match(uri_without_proto, what, re_url, match_default)) {
string address = what[1];
@@ -118,7 +118,7 @@ int DabOutputUdp::Open(const char* name)
else {
etiLog.level(error) << uri_without_proto <<
" is an invalid format for UDP address: "
- "expected ADDRESS:PORT[?src=SOURCE,ttl=TTL]";
+ "expected ADDRESS:PORT[?src=SOURCE&ttl=TTL]";
return -1;
}