diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-22 11:24:00 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-11-22 11:24:00 +0100 |
commit | 078b1e581aba73f740c8e0d2e6faab963540aaab (patch) | |
tree | a5e356536d590ab3dbf1ad626c49ca8712e6bc58 /src/dabOutput/dabOutputUdp.cpp | |
parent | 335c4ffd68329358b469fd119a058dd096abf1cb (diff) | |
download | dabmux-078b1e581aba73f740c8e0d2e6faab963540aaab.tar.gz dabmux-078b1e581aba73f740c8e0d2e6faab963540aaab.tar.bz2 dabmux-078b1e581aba73f740c8e0d2e6faab963540aaab.zip |
Prefer usage of ampersand in UDP output URL query
Diffstat (limited to 'src/dabOutput/dabOutputUdp.cpp')
-rw-r--r-- | src/dabOutput/dabOutputUdp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |