summaryrefslogtreecommitdiffstats
path: root/src/RemoteControl.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-23 10:58:02 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-01-23 10:58:02 +0100
commitdf9aed63a9d30c4778414a28648d41c2eaca50f9 (patch)
tree6d7f4029843f110464b501c8a66d4dfd9c33cb29 /src/RemoteControl.cpp
parent1b2552c8bbf136808d51aa144f056e433dcb7e4a (diff)
downloaddabmux-df9aed63a9d30c4778414a28648d41c2eaca50f9.tar.gz
dabmux-df9aed63a9d30c4778414a28648d41c2eaca50f9.tar.bz2
dabmux-df9aed63a9d30c4778414a28648d41c2eaca50f9.zip
Security: Telnet only accessible from localhost
Diffstat (limited to 'src/RemoteControl.cpp')
-rw-r--r--src/RemoteControl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp
index c8fb0e8..e46bc8d 100644
--- a/src/RemoteControl.cpp
+++ b/src/RemoteControl.cpp
@@ -67,7 +67,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 = "";
@@ -225,8 +226,7 @@ void RemoteControllerTelnet::dispatch_command(tcp::socket& socket, string comman
reply(socket, "Error: Invalid parameter value. ");
}
}
- else
- {
+ else {
reply(socket, "Incorrect parameters for command 'set'");
}
}