mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
feat(parser): get config file from arg
This commit is contained in:
@@ -34,9 +34,9 @@ void Server::print_epoll_events(unsigned int events)
|
||||
//----------------------------------------------Send--------------------------------------------------------------------------------------------
|
||||
|
||||
//----------------------------------------------Configuration-----------------------------------------------------------------------------------
|
||||
void Server::readConfig(void)
|
||||
void Server::readConfig(char *filename)
|
||||
{
|
||||
TOMLMap *root = parse();
|
||||
TOMLMap *root = parse(filename);
|
||||
|
||||
|
||||
/* TOMLMap *map; */
|
||||
|
||||
@@ -56,7 +56,7 @@ class Server
|
||||
Server();
|
||||
Server(std::string path);
|
||||
|
||||
void readConfig(void);
|
||||
void readConfig(char *filename);
|
||||
void setupConfig(void);
|
||||
void start(void);
|
||||
void end(void);
|
||||
|
||||
Reference in New Issue
Block a user