dsnet / udptunnel

Daemon for creating a simple VPN over UDP.
BSD 3-Clause "New" or "Revised" License
172 stars 31 forks source link

Question about magic value - disabling or minimizing PacketMagic to reduce overhead? #11

Open LindaFerum opened 11 months ago

LindaFerum commented 11 months ago

Hi! From my very cursory and inexperienced observation it appears that magic value can be specified directly in the config

a-la "PacketMagic": "stuff",

Assuming any adversarial action against the tunnel is not a problem (long story, I'm planning to tunnel it through another connection), could I specify something like

"PacketMagic": "i",

to minimize overhead (IIRC strings are supposed to be UTF-8 so a single ASCII character would "eat up" one byte) ?

I am not a Go pro :) but it does seem like it just gets appended to a packet verbatim, correct?