From a5b6364c269417dc5c2e2e0d90d1277efd482132 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 28 Aug 2024 11:39:01 +0200 Subject: [PATCH] checking version on chat client&server startup --- src/chat/main/client.c | 1 + src/chat/main/server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/chat/main/client.c b/src/chat/main/client.c index b803738..7e61a85 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -85,6 +85,7 @@ int main(void) { signal(SIGINT, exit_client); //HANDLE ^C + why2_check_version(); //CHECK FOR UPDATES why2_chat_init_client_config(); //CREATE client.toml CONFIGURATION why2_chat_init_keys(); //CREATE RSA KEYS diff --git a/src/chat/main/server.c b/src/chat/main/server.c index 287e3f2..6378ff9 100644 --- a/src/chat/main/server.c +++ b/src/chat/main/server.c @@ -34,6 +34,7 @@ along with this program. If not, see . int main(void) { + why2_check_version(); //CHECK FOR UPDATES why2_chat_init_server_config(); //CREATE server.toml CONFIGURATION int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET