diff --git a/src/simple_socket/util/port_query.cpp b/src/simple_socket/util/port_query.cpp index 18baf8c..7953e57 100644 --- a/src/simple_socket/util/port_query.cpp +++ b/src/simple_socket/util/port_query.cpp @@ -42,5 +42,5 @@ std::optional simple_socket::getAvailablePort(uint16_t startPort, uint closeSocket(sockfd); - return -1;// No available port found + return std::nullopt;// No available port found }