Skip to content

Commit

Permalink
add dns hijacking resist doh resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
uoosef committed Sep 3, 2023
1 parent 6c856a2 commit 28d6894
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func (s *Server) sendSplitChunks(dst io.Writer, chunks map[int][]byte) {

// Handle handles the SOCKS5 request and forwards traffic to the destination.
func (s *Server) Handle(ctx context.Context, w io.Writer, req *socks5.Request, network string) error {
fmt.Println("here")
if s.WorkerConfig.WorkerEnabled &&
!s.WorkerConfig.WorkerDNSOnly &&
(network == "udp" || !strings.Contains(s.WorkerConfig.WorkerAddress, req.DstAddr.FQDN) || strings.TrimSpace(req.DstAddr.FQDN) == "") {
Expand Down

0 comments on commit 28d6894

Please sign in to comment.