fix: use getaddrinfo() instead of gethostbyname()
This commit is contained in:
parent
2111865efe
commit
385726e701
|
@ -130,6 +130,8 @@ void IPC::unregisterForIPC(EventHandler* ev_handler) {
|
||||||
callbackMutex.unlock();
|
callbackMutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
std::string IPC::getSocket1Reply(const std::string& rq) {
|
std::string IPC::getSocket1Reply(const std::string& rq) {
|
||||||
// basically hyprctl
|
// basically hyprctl
|
||||||
|
|
||||||
|
@ -140,7 +142,7 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto SERVER = gethostbyname("localhost");
|
const auto SERVER = getaddrinfo("localhost", NULL, NULL, 0);
|
||||||
|
|
||||||
if (!SERVER) {
|
if (!SERVER) {
|
||||||
spdlog::error("Hyprland IPC: Couldn't get host (2)");
|
spdlog::error("Hyprland IPC: Couldn't get host (2)");
|
||||||
|
|
Loading…
Reference in New Issue