mirror of
https://github.com/fumiama/simple-http-server.git
synced 2026-06-05 08:40:24 +08:00
add ignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -51,4 +51,5 @@ Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
|
||||
build
|
||||
build
|
||||
.DS_Store
|
||||
|
||||
10
server.c
10
server.c
@@ -26,7 +26,7 @@
|
||||
|
||||
#define ISspace(x) isspace((int)(x))
|
||||
|
||||
#define SERVER_STRING "Server: tinyhttpd edited by fumiama/0.1.0\r\n"
|
||||
#define SERVER_STRING "Server: TinyHttpd modified by Fumiama/1.0\r\n"
|
||||
|
||||
void accept_request(void *);
|
||||
void bad_request(int);
|
||||
@@ -440,11 +440,11 @@ void serve_file(int client, const char *filename) {
|
||||
* Returns: the socket */
|
||||
/**********************************************************************/
|
||||
#ifdef LISTEN_ON_IPV6
|
||||
static socklen_t struct_len = sizeof(struct sockaddr_in6);
|
||||
static struct sockaddr_in6 name;
|
||||
static socklen_t struct_len = sizeof(struct sockaddr_in6);
|
||||
static struct sockaddr_in6 name;
|
||||
#else
|
||||
static socklen_t struct_len = sizeof(struct sockaddr_in);
|
||||
static struct sockaddr_in name;
|
||||
static socklen_t struct_len = sizeof(struct sockaddr_in);
|
||||
static struct sockaddr_in name;
|
||||
#endif
|
||||
|
||||
int startup(u_short *port) {
|
||||
|
||||
Reference in New Issue
Block a user