Network detect (#26)

This commit is contained in:
Alex
2018-08-17 14:24:00 +02:00
committed by GitHub
parent 0603b99714
commit d280f5e8bd
8 changed files with 274 additions and 20 deletions

View File

@ -34,7 +34,7 @@ std::string getSocketPath() {
}
int ipcOpenSocket(const std::string &socketPath) {
struct sockaddr_un addr = {};
struct sockaddr_un addr = {0};
int socketfd;
if ((socketfd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
throw std::runtime_error("Unable to open Unix socket");