src/relpipe-tr-httpd.cpp
branchv_0
changeset 2 4b05b16b97e6
parent 1 23c516259cc5
child 4 37a86904145c
--- 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();