mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Socket-related cleanups
Improve error handling on Windows and reduce the size of the `Address` class
This commit is contained in:
parent
05573d6d8d
commit
0ea8df4d64
8 changed files with 114 additions and 156 deletions
|
@ -1444,7 +1444,6 @@ bool Game::connectToServer(const GameStartData &start_data,
|
|||
connect_address.Resolve(start_data.address.c_str());
|
||||
|
||||
if (connect_address.isZero()) { // i.e. INADDR_ANY, IN6ADDR_ANY
|
||||
//connect_address.Resolve("localhost");
|
||||
if (connect_address.isIPv6()) {
|
||||
IPv6AddressBytes addr_bytes;
|
||||
addr_bytes.bytes[15] = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue