This commit is contained in:
anlicheng 2026-02-21 22:40:00 +08:00
parent ba430e76ad
commit 92ced0cfa0

View File

@ -107,7 +107,7 @@ handle_info({udp, Sock, Ip, Port, <<?PACKET_STUN_REQUEST:8, Body/binary>>}, Stat
cookie = Cookie cookie = Cookie
}), }),
ok = gen_udp:send(Sock, Ip, Port, <<?PACKET_STUN_REPLY, StunReply/binary>>), ok = gen_udp:send(Sock, Ip, Port, <<?PACKET_STUN_REPLY, StunReply/binary>>),
logger:debug("[sdlan_stun] stun_request network_id: ~p, client_id: ~p, hole: ~p", [NetworkId, ClientId, {Ip, Port}]) logger:debug("[sdlan_stun] stun_request network_id: ~p, client_id: ~p, hole: ~p, bytes: ~p", [NetworkId, ClientId, {Ip, Port}, <<?PACKET_STUN_REPLY, StunReply/binary>>])
end, end,
{noreply, State}; {noreply, State};