eycorsican/go-tun2socks

is some way to better detect DNS data?

rurirei opened this issue · 5 comments

func (h *udpHandler) Connect(conn core.UDPConn, udpAddr *net.UDPAddr) error {
if udpAddr.Port != dns.COMMON_DNS_PORT {
return errors.New("Cannot handle non-DNS packet")
}
return nil
}
to check if port 53 is simple way but not steady enough. is there some way better?

addition, what is happening when enables DNS over TLS inside system Android, mostly it causes unavailbility of Fake DNS, and some other problem i had not known.

thanks for reply in advance.

There's a fork of go-tun2socks with many extra features you might be interested. It's based on another fork of go-tun2socks that is used by the Google Play version of Kitsunebi.

great thanks to make project so good open source of you.

though it do not solve my question in this post.

addition, seems leaf is also a cross platform solution, what is the different purpose of it and mellow, is it on different language based? @eycorsican

leaf is an experimental project originally tries to address several unsolved issues in mellow/go-tun2socks/v2ray.

got it. big thanks for all your great project.