Browse Source
Merge pull request #294 from Logan007/regPayload
no payload with REGISTER
pull/296/head
Luca Deri
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
0 additions and
6 deletions
-
src/sn.c
-
src/sn_utils.c
|
|
@ -656,9 +656,6 @@ static int process_udp(n2n_sn_t * sss, |
|
|
|
|
|
|
|
/* Re-encode the header. */ |
|
|
|
encode_REGISTER(encbuf, &encx, &cmn2, ®); |
|
|
|
|
|
|
|
/* 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. */ |
|
|
|
|
|
@ -586,9 +586,6 @@ static int process_udp(n2n_sn_t * sss, |
|
|
|
|
|
|
|
/* Re-encode the header. */ |
|
|
|
encode_REGISTER(encbuf, &encx, &cmn2, ®); |
|
|
|
|
|
|
|
/* 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. */ |
|
|
|