fix: bypass a linux build error

This commit is contained in:
Horror Proton
2022-09-06 01:25:50 +08:00
parent 41557d7a20
commit b46484a069

View File

@@ -631,7 +631,11 @@ std::optional<unsigned short> asst::Controller::try_to_init_socket(const std::st
return std::nullopt;
}
#ifdef _WIN32
port_result = ntohs(m_server_addr.sin_port);
#else
// todo
#endif
Log.info("server_start", local_address, port_result);
return port_result;