aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-23 10:34:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-23 10:52:08 +0100
commit076ac8aaf7adfeca57d5d04d4b2f066bb6db54ee (patch)
treef5331dbb465df920079a9d05be593e308ccbd77f
parente12c679b8cc8a263507c556cb24819dc0d5559b9 (diff)
downloaddabmod-076ac8aaf7adfeca57d5d04d4b2f066bb6db54ee.tar.gz
dabmod-076ac8aaf7adfeca57d5d04d4b2f066bb6db54ee.tar.bz2
dabmod-076ac8aaf7adfeca57d5d04d4b2f066bb6db54ee.zip
Security issue: telnet RC only on localhost
-rw-r--r--src/RemoteControl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp
index 6f538dc..1e8dda5 100644
--- a/src/RemoteControl.cpp
+++ b/src/RemoteControl.cpp
@@ -66,7 +66,8 @@ void RemoteControllerTelnet::process(long)
try {
boost::asio::io_service io_service;
- tcp::acceptor acceptor(io_service, tcp::endpoint(tcp::v4(), m_port));
+ tcp::acceptor acceptor(io_service, tcp::endpoint(
+ boost::asio::ip::address::from_string("127.0.0.1"), m_port) );
while (m_running) {
in_message = "";