mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 10:43:43 +00:00
clean up
This commit is contained in:
+1
-1
@@ -220,7 +220,7 @@ static void server_recv_cb (EV_P_ ev_io *w, int revents) {
|
||||
// IP V4
|
||||
size_t in_addr_len = sizeof(struct in_addr);
|
||||
if (r > in_addr_len) {
|
||||
inet_ntop(AF_INET, (void *)(server->buf + offset),
|
||||
inet_ntop(AF_INET, (const void *)(server->buf + offset),
|
||||
host, INET_ADDRSTRLEN);
|
||||
offset += in_addr_len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user