some review

This commit is contained in:
wt
2024-07-17 02:02:51 +07:00
parent 726b8807e0
commit aa658131a7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -52,11 +52,11 @@ OpenRouter::OpenRouter() {
OpenRouter::~OpenRouter() = default;
int OpenRouter::serve(const std::string *ip, int port, int socket_flags) {
int OpenRouter::serve(const std::string &ip, int port, int socket_flags) {
std::cout << GREEN << "Starting" << RESET << " server on [ " << YELLOW
<< "0.0.0.0" << RESET << ":" << CYAN << "43244" << RESET << " ]" << std::endl;
syslog(LOG_INFO, "openrouter administration software started.");
srv.listen("127.0.0.1", 43244);
this->srv.listen(ip, port, socket_flags);
return 0;
}
+1 -1
View File
@@ -13,7 +13,7 @@ class OpenRouter {
public:
OpenRouter();
~OpenRouter();
int serve(const std::string *ip, int port, int socket_flags = 0);
int serve(const std::string &ip, int port, int socket_flags = 0);
};
#endif // OPENROUTER_HPP