mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-24 06:53:45 +00:00
Fix ipv6 address format in log message
This commit is contained in:
+4
-1
@@ -468,7 +468,10 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
LOGI("connect to %s:%s", host, port);
|
||||
if (request->atyp == 4)
|
||||
LOGI("connect to [%s]:%s", host, port);
|
||||
else
|
||||
LOGI("connect to %s:%s", host, port);
|
||||
}
|
||||
|
||||
if ((acl && (request->atyp == 1 || request->atyp == 4) && acl_match_ip(host))) {
|
||||
|
||||
Reference in New Issue
Block a user