generated from AfonsoCMSousa/CPP-Template
fix: fixed ANOTHER issue with net.cpp
This commit is contained in:
parent
159a93317e
commit
ecc303ca2a
BIN
PlayerTracker
BIN
PlayerTracker
Binary file not shown.
@ -28,7 +28,6 @@ void Socket::connect_unix(const char *ip, uint16_t port) {
|
||||
throw std::runtime_error("Failed to create UNIX socket");
|
||||
}
|
||||
|
||||
memset(&server_addr, 0, sizeof(server_addr));
|
||||
this->server_addr_unix.sun_family = AF_UNIX;
|
||||
strncpy(this->server_addr_unix.sun_path, ip, sizeof(this->server_addr_unix.sun_path) - 1);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user