aboutsummaryrefslogtreecommitdiff
path: root/server_network.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-07-24 05:20:35 -0400
committerTest_User <hax@andrewyu.org>2024-07-24 05:23:03 -0400
commitf1d206b85bd63d59c13fc9f12e2446fe90c9c79f (patch)
treec1dbc92c3f3a1922ef92d583d58ab37dc8780324 /server_network.c
parent6c636818b25c9ef6d12af669914c84c94de2fd88 (diff)
downloadhaxircd-f1d206b85bd63d59c13fc9f12e2446fe90c9c79f.tar.gz
haxircd-f1d206b85bd63d59c13fc9f12e2446fe90c9c79f.zip
Fix some bugs
Diffstat (limited to 'server_network.c')
-rw-r--r--server_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server_network.c b/server_network.c
index 845794a..5746526 100644
--- a/server_network.c
+++ b/server_network.c
@@ -124,7 +124,7 @@ int start_server_network_threads(size_t net) {
if (!type)
return 1;
type->net_type = net;
- type->protocol = INSPIRCD2_PROTOCOL;
+ type->protocol = i;
type->family = AF_INET;
type->is_incoming = 1;
if (pthread_create(&trash, &pthread_attr, server_accept_thread, type) != 0) {
@@ -137,7 +137,7 @@ int start_server_network_threads(size_t net) {
if (!type)
return 1;
type->net_type = net;
- type->protocol = INSPIRCD2_PROTOCOL;
+ type->protocol = i;
type->family = AF_INET6;
type->is_incoming = 1;
if (pthread_create(&trash, &pthread_attr, server_accept_thread, type) != 0) {