--- a/src/relpipe-tr-httpd.cpp Thu Apr 07 21:06:37 2022 +0200
+++ b/src/relpipe-tr-httpd.cpp Thu Apr 07 23:04:12 2022 +0200
@@ -51,7 +51,9 @@
Configuration configuration = cliParser.parse(cli.arguments());
std::shared_ptr<RelationalWriter> writer(relpipe::writer::Factory::create(std::cout));
std::shared_ptr<RelationalReader> reader(relpipe::reader::Factory::create(std::cin));
- std::shared_ptr<HTTPServer> httpServer(HTTPServer::create());
+ HTTPServer::Options serverOptions;
+ serverOptions.tcpPort = configuration.tcpPort;
+ std::shared_ptr<HTTPServer> httpServer(HTTPServer::create(serverOptions));
HttpdHandler handler(writer, configuration, httpServer);
reader->addHandler(&handler);
reader->process();