mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 15:16:58 +00:00
Fix android.c
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ send_traffic_stat(uint64_t tx, uint64_t rx)
|
||||
strncpy(addr.sun_path, "stat_path", sizeof(addr.sun_path) - 1);
|
||||
|
||||
if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
|
||||
LOGE("[android] connect() failed for stat_path: %s (socket fd = %d): %s\n",
|
||||
LOGE("[android] connect() failed for stat_path: %s (socket fd = %d)\n",
|
||||
strerror(errno), sock);
|
||||
close(sock);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user