diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-05-08 01:12:01 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-05-08 01:12:01 +0200 |
commit | a9d9b31957b0a48f35e28f2102af2f7cd0be8d51 (patch) | |
tree | 4f42f33ea201e26a637d593c3237e4418daf3322 | |
parent | 6fd0df4b8279b3856b1f84bb6cbeb861e1cb8a82 (diff) | |
download | hittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.tar.gz hittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.tar.xz hittpd-a9d9b31957b0a48f35e28f2102af2f7cd0be8d51.zip |
define global for default port
-rw-r--r-- | hittpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c index 7ec4337..40c81a3 100644 --- a/hittpd.c +++ b/hittpd.c @@ -90,6 +90,7 @@ char mimetypes[] = char default_mimetype[] = "text/plain"; // "application/octet-stream" char default_wwwroot[] = "/var/www"; char default_vhost[] = "_default"; +char default_port[] = "80"; char *wwwroot = default_wwwroot; int tilde = 0; @@ -850,7 +851,7 @@ read_client(int i) int main(int argc, char *argv[]) { - char *port = "80"; + const char *port = default_port; char *host = 0; int c; |