code refactor
Merge https://github.com/henices/Tcp-DNS-proxy