14 lines
484 B
Diff
14 lines
484 B
Diff
|
diff --git a/src/modules/hyprland/backend.cpp b/src/modules/hyprland/backend.cpp
|
||
|
index 76c071c..f110825 100644
|
||
|
--- a/src/modules/hyprland/backend.cpp
|
||
|
+++ b/src/modules/hyprland/backend.cpp
|
||
|
@@ -140,7 +140,7 @@ std::string IPC::getSocket1Reply(const std::string& rq) {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
- const auto SERVER = gethostbyname("localhost");
|
||
|
+ const auto SERVER = getaddrinfo("localhost", NULL, NULL, 0);
|
||
|
|
||
|
if (!SERVER) {
|
||
|
spdlog::error("Hyprland IPC: Couldn't get host (2)");
|