Skip to content

Commit

Permalink
stun: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yosoyubik committed Nov 8, 2023
1 parent 0f934da commit 81c1052
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/vere/io/ames.c
Original file line number Diff line number Diff line change
Expand Up @@ -2522,14 +2522,9 @@ _ames_recv_cb(uv_udp_t* wax_u,
} else if (_stun_is_our_response(buf_u->base, sam_u->sun_u.tid_y, nrd_i)
== c3y) {
c3_w cookie = 0x2112A442;
c3_w ip_addr_map = _ames_sift_word(buf_u->base + 28);
c3_s port_map = _ames_sift_short(buf_u->base + 26);

c3_w ip_addr_xor = _ames_sift_word(buf_u->base + 28 + 12);
c3_s port_xor = _ames_sift_short(buf_u->base + 26 + 12);

u3l_log("ip: %u", ntohl(ip_addr));
u3l_log("port: %u", ntohs(port));
// New lane
u3_lane lan_u;
lan_u.por_s = ntohs(htons(port_xor) ^ cookie >> 16);
Expand Down

0 comments on commit 81c1052

Please sign in to comment.