http: add --http-listen=<ip4>, and listen by default on 127.0.0.1 (#81)

Co-authored-by: AndrolGenhald <AndrolGenhald@gmail.com>
This commit is contained in:
Kamil Trzciński
2023-07-01 16:38:36 +02:00
committed by GitHub
parent f1966ab2b9
commit 8d0c04ccd5
12 changed files with 37 additions and 6 deletions

View File

@ -26,6 +26,7 @@ typedef struct http_method_s {
} http_method_t;
typedef struct http_server_options_s {
char listen[512];
unsigned port;
unsigned maxcons;
} http_server_options_t;