- Added 'log/*' and 'server' to .gitignore to exclude log files and server binary. - Enhanced README.md with improved structure and additional features. - Updated server configuration to provide a warning for default server_name and changed default to '127.0.0.1'.
15 lines
374 B
C
15 lines
374 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "server_config.h"
|
|
|
|
void init_config(ServerConfig *config) {
|
|
config->port = 8080;
|
|
config->use_https = false;
|
|
strcpy(config->log_file, "server.log");
|
|
config->max_threads = 4;
|
|
config->running = true;
|
|
config->automatic_startup = false;
|
|
config->verbose = 0;
|
|
strcpy(config->server_name, "127.0.0.1");
|
|
}
|