Browse Source

Merge pull request #294 from Logan007/regPayload

no payload with REGISTER
pull/296/head
Luca Deri 4 years ago
committed by GitHub
parent
commit
f7ea8eba21
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/sn.c
  2. 3
      src/sn_utils.c

3
src/sn.c

@ -656,9 +656,6 @@ static int process_udp(n2n_sn_t * sss,
/* Re-encode the header. */
encode_REGISTER(encbuf, &encx, &cmn2, &reg);
/* Copy the original payload unchanged */
encode_buf(encbuf, &encx, (udp_buf + idx), (udp_size - idx));
} else {
/* Already from a supernode. Nothing to modify, just pass to
* destination. */

3
src/sn_utils.c

@ -586,9 +586,6 @@ static int process_udp(n2n_sn_t * sss,
/* Re-encode the header. */
encode_REGISTER(encbuf, &encx, &cmn2, &reg);
/* Copy the original payload unchanged */
encode_buf(encbuf, &encx, (udp_buf + idx), (udp_size - idx));
} else {
/* Already from a supernode. Nothing to modify, just pass to
* destination. */

Loading…
Cancel
Save