CONFIG.h
This commit is contained in:
3
main.c
3
main.c
@ -10,6 +10,7 @@
|
||||
#include "routes.h"
|
||||
#include "baked.h"
|
||||
#include "timer.h"
|
||||
#include "CONFIG.h"
|
||||
|
||||
Route *route_hashtable = NULL;
|
||||
|
||||
@ -132,7 +133,7 @@ int main(int argc, char ** argv)
|
||||
defer { free_route_hashtable(); }
|
||||
|
||||
mg_wakeup_init(&mgr);
|
||||
mg_http_listen(&mgr, "http://localhost:8080", &event_handler, NULL);
|
||||
mg_http_listen(&mgr, CONFIG_LISTEN_URL, &event_handler, NULL);
|
||||
|
||||
for (;;) {
|
||||
mg_mgr_poll(&mgr, 1000);
|
||||
|
Reference in New Issue
Block a user