aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2025-08-13 15:18:41 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2025-08-13 15:18:41 +0200
commitd1e75e4ca6853c97f8fe4f71b282b9ca313be0c0 (patch)
tree5776f9958a26dd5d754a6d7ce054983d94b7a987 /src/DabMux.cpp
parentcac0554c72e7f02965c53406efa308e1cffaa67b (diff)
downloaddabmux-d1e75e4ca6853c97f8fe4f71b282b9ca313be0c0.tar.gz
dabmux-d1e75e4ca6853c97f8fe4f71b282b9ca313be0c0.tar.bz2
dabmux-d1e75e4ca6853c97f8fe4f71b282b9ca313be0c0.zip
Make sourceport optional in EDI output config
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 75788d8..4b9352f 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -367,9 +367,8 @@ int main(int argc, char *argv[])
dest->ttl = *ttl;
dest->source_addr = pt_edi_dest.second.get<string>("source", "");
- dest->source_port = pt_edi_dest.second.get<unsigned int>("sourceport");
-
- dest->dest_port = pt_edi_dest.second.get<unsigned int>("port", 0);
+ dest->source_port = pt_edi_dest.second.get<unsigned int>("sourceport", 0);
+ dest->dest_port = pt_edi_dest.second.get<unsigned int>("port", 0);
if (dest->dest_port == 0) {
// Compatiblity: we have removed the transport and addressing in the
// PFT layer, which removed the requirement that all outputs must share