shadowsocks / ChinaDNS

Protect yourself against DNS poisoning in China.
GNU General Public License v3.0
3.59k stars 1.29k forks source link

fix bug: message too long #155

Open HaoH opened 4 years ago

HaoH commented 4 years ago

the global buffer used to receive and send message is set to 512 bytes, which is too small. This will cause 'Message too long' error, which will cause the many outside world dns query fail.

I test on macos, the longest message I see is large than 1024. I change the buffer size to 2048 and it works well.