only listen on localhost ipv4

This commit is contained in:
Lion Kortlepel
2024-10-06 15:20:05 +02:00
committed by Tixx
parent 49874fd633
commit 7d52e44434
2 changed files with 2 additions and 2 deletions

View File

@@ -306,7 +306,7 @@ void CoreMain() {
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
hints.ai_flags = AI_PASSIVE;
iRes = getaddrinfo(nullptr, std::to_string(options.port).c_str(), &hints, &res);
iRes = getaddrinfo("127.0.0.1", std::to_string(options.port).c_str(), &hints, &res);
if (iRes) {
debug("(Core) addr info failed with error: " + std::to_string(iRes));
WSACleanup();