This commit is contained in:
netbenix 2021-05-08 17:14:40 +02:00
parent 9caca5a4fb
commit f55aa94d84
10 changed files with 330 additions and 374 deletions

View file

@ -5,7 +5,7 @@
#include "update_check.h"
#include "logger.h"
#define SERVER_IP "127.0.0.1"
#define DEFAULT_IP "192.168.0.32"
int checkForUpdate(char ver[10]){
int sock;
@ -19,7 +19,7 @@ int checkForUpdate(char ver[10]){
logger("Error while creating socket");
}
server.sin_addr.s_addr = inet_addr(SERVER_IP); //Set the IP address of the server
server.sin_addr.s_addr = inet_addr(DEFAULT_IP); //Set the IP address of the server
server.sin_family = AF_INET;
server.sin_port = htons( 34000 ); //Set the server port

View file

@ -2,5 +2,4 @@
#define _UPDATE_CHECK_H_
int checkForUpdate(char ver[10]);
#endif