mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-22 22:03:42 +00:00
add auth to udprelay
This commit is contained in:
+1
-1
@@ -664,7 +664,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
offset += 2;
|
||||
|
||||
if (auth || (atyp & ONETIMEAUTH_FLAG)) {
|
||||
if (ss_onetimeauth_verify(server->buf + offset, server->buf, offset, server->d_ctx)) {
|
||||
if (ss_onetimeauth_verify(server->buf + offset, server->buf, offset, server->d_ctx->evp.iv)) {
|
||||
LOGE("authentication error %d", atyp);
|
||||
report_addr(server->fd);
|
||||
close_and_free_server(EV_A_ server);
|
||||
|
||||
Reference in New Issue
Block a user