Optimization
- Added developer mode - removed exit_app() function - moved man.c from /etc/man to /etc - added varialble for server ip
This commit is contained in:
parent
f77acacd90
commit
d05ed9cd91
6 changed files with 42 additions and 23 deletions
|
|
@ -5,6 +5,8 @@
|
|||
#include "update_check.h"
|
||||
#include "logger.h"
|
||||
|
||||
#define SERVER_IP "127.0.0.1"
|
||||
|
||||
int checkForUpdate(char ver[10]){
|
||||
int sock;
|
||||
struct sockaddr_in server;
|
||||
|
|
@ -17,7 +19,7 @@ int checkForUpdate(char ver[10]){
|
|||
logger("Error while creating socket");
|
||||
}
|
||||
|
||||
server.sin_addr.s_addr = inet_addr("127.0.0.1"); //Set the IP address of the server
|
||||
server.sin_addr.s_addr = inet_addr(SERVER_IP); //Set the IP address of the server
|
||||
server.sin_family = AF_INET;
|
||||
server.sin_port = htons( 34000 ); //Set the server port
|
||||
|
||||
|
|
|
|||
Reference in a new issue