mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
add tcp support and use it by default
This commit is contained in:
parent
4acce71468
commit
d424489329
4 changed files with 16 additions and 291 deletions
|
@ -319,7 +319,7 @@ func (iface *udpInterface) reader() {
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const udp_chunkSize = 1024
|
||||
const udp_chunkSize = 508 // Apparently the maximum guaranteed safe IPv4 size
|
||||
|
||||
func udp_decode(bs []byte) (chunks, chunk, count uint8, payload []byte) {
|
||||
if len(bs) >= 3 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue