aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoramy <[email protected]>2025-12-25 02:13:48 -0600
committerGitHub <[email protected]>2025-12-25 02:13:48 -0600
commit886385c2c406cd2743f1515ac0fea3903d3f0390 (patch)
tree1d97d09731a675b5d5487b38626ade268e767519 /src
parent735c7feb19cb29ec24588bf1a4986b52f8cf6ffa (diff)
forgot ipv6 was a thingHEADmain
Diffstat (limited to 'src')
-rw-r--r--src/net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index 49eabd7..37f3c3a 100644
--- a/src/net.c
+++ b/src/net.c
@@ -52,7 +52,7 @@ int get_host(char* hostname, char* port){
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
- hints.ai_family = AF_INET;
+ hints.ai_family = AF_INET | AF_INET6;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = 0;
hints.ai_protocol = 0;
@@ -1097,3 +1097,4 @@ int l_listen(lua_State* L){
start_serv(L, port);
return 0;
}
+