rofl0r / microsocks

tiny, portable SOCKS5 server with very moderate resource usage
Other
1.55k stars 275 forks source link

Always crash on FreeBSD 9 #21

Closed 404neko closed 4 years ago

404neko commented 4 years ago

Program always crash when doing domain resolving. After calling resolve(const char *host, unsigned short port, struct addrinfo** addr), it crash. Do you have any idea about it? Thanks

rofl0r commented 4 years ago

could you try whether this change fixes it ? https://github.com/rofl0r/microsocks/issues/6#issuecomment-384757566

404neko commented 4 years ago

could you try whether this change fixes it ? #6 (comment)

It works~ Thanks~

rofl0r commented 4 years ago

could you try to figure out the minimum value that works ? like try e.g. 128*1024, 256*1024, etc

timp87 commented 4 years ago

Probably fixed in https://github.com/rofl0r/microsocks/commit/20d17e3c45ae43be50687918b0ef658088d0214b