mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 16:03:45 +00:00
Fix #673
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ int protect_socket(int fd)
|
||||
setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(struct timeval));
|
||||
setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv, sizeof(struct timeval));
|
||||
|
||||
char path[256];
|
||||
char path[257];
|
||||
sprintf(path, "%s/protect_path", prefix);
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
@@ -113,7 +113,7 @@ int send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, (char *)&tv, sizeof(struct timeval));
|
||||
setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, (char *)&tv, sizeof(struct timeval));
|
||||
|
||||
char path[256];
|
||||
char path[257];
|
||||
sprintf(path, "%s/stat_path", prefix);
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
|
||||
Reference in New Issue
Block a user