changed copy paste error

This commit is contained in:
Jonas Zeunert
2019-07-11 23:31:45 +02:00
parent fb6d7ce9f3
commit 29427cc394

View File

@@ -170,9 +170,8 @@ int FlippRServer::main(const std::vector<std::string>& args)
HTTPServer* FlippRServer::build_output_server()
{
unsigned short port = (unsigned short) config().getInt("HTTPTimeServer.port", this->output_port);
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
// todo XDG_RUNTIME_DIR
std::string runtime_dir = this->get_runtime_dir();
SocketAddress address(runtime_dir + SOCKET_NAME);
@@ -183,9 +182,8 @@ HTTPServer* FlippRServer::build_output_server()
TCPServer* FlippRServer::build_input_server()
{
unsigned short port = (unsigned short) config().getInt("HTTPTimeServer.port", this->output_port);
unsigned short port = (unsigned short) config().getInt("FlippRServer.port", this->output_port);
//TODO adapt path
std::string runtime_dir = this->get_runtime_dir();
SocketAddress address(runtime_dir + SOCKET_NAME);
ServerSocket server_socket(address);