1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-05 00:30:23 +08:00

fix accept

This commit is contained in:
源文雨
2022-03-04 19:41:27 +08:00
parent 437ba41a45
commit 4900c4cf01

View File

@@ -495,7 +495,7 @@ static int startupunix(char *path) {
#if __APPLE__
uname.sun_len = strlen(path)+1; // including null
#else
int sun_len = strlen(path)+1; // including null
int sun_len = strlen(path);
#endif
if(httpd < 0) error_die("unix socket");
unlink(path); // in case it already exists