diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-24 14:26:42 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-01-24 14:26:42 +0100 |
commit | e3fe78175fd25c2dd50c559c9436f706e0436a9c (patch) | |
tree | f1c0ba0e18ef736582a590bf8005ddb5f4d79e51 /src/ParserConfigfile.cpp | |
parent | 3983be135c14d355c36ee3d69424f03c73fc6a13 (diff) | |
download | dabmux-e3fe78175fd25c2dd50c559c9436f706e0436a9c.tar.gz dabmux-e3fe78175fd25c2dd50c559c9436f706e0436a9c.tar.bz2 dabmux-e3fe78175fd25c2dd50c559c9436f706e0436a9c.zip |
change telnet rc config, add example to doc
Diffstat (limited to 'src/ParserConfigfile.cpp')
-rw-r--r-- | src/ParserConfigfile.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index df83df7..3ac6537 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -190,10 +190,7 @@ void parse_configfile(string configuration_file, /************** READ REMOTE CONTROL PARAMETERS *************/ ptree pt_rc = pt.get_child("remotecontrol"); - int telnetport = 0; - if (pt_rc.get("telnet", 0)) { - telnetport = pt_rc.get<int>("port", 0); - } + int telnetport = pt_rc.get<int>("telnetport", 0); if (telnetport != 0) { rc = new RemoteControllerTelnet(telnetport); |