mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: bypass a linux build error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user