From fa6826ca05f3def88fdb5f125b9af451930d9525 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 3 Feb 2025 21:12:10 +0100 Subject: [PATCH] using set_server fn in server-side programs --- src/chat/main/authority.c | 1 + src/chat/main/server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/chat/main/authority.c b/src/chat/main/authority.c index 683b047..8e3b311 100644 --- a/src/chat/main/authority.c +++ b/src/chat/main/authority.c @@ -35,6 +35,7 @@ along with this program. If not, see . int main(void) { + __why2_chat_set_server(1); why2_check_version(); //CHECK FOR UPDATES why2_chat_init_authority(); //CREATE AUTHORITY DIRECTORY why2_chat_init_keys(); //CREATE ECC KEY diff --git a/src/chat/main/server.c b/src/chat/main/server.c index 08a6cdc..b01c31f 100644 --- a/src/chat/main/server.c +++ b/src/chat/main/server.c @@ -35,6 +35,7 @@ along with this program. If not, see . int main(void) { + __why2_chat_set_server(1); why2_check_version(); //CHECK FOR UPDATES why2_chat_init_server_config(); //CREATE server.toml CONFIGURATION why2_chat_init_keys(); //CREATE ECC KEY