mirror of
				https://github.com/xjasonlyu/tun2socks.git
				synced 2025-10-31 03:56:30 +08:00 
			
		
		
		
	Update proxy.go
This commit is contained in:
		| @@ -44,6 +44,11 @@ func RegisterFakeDNS(d D.FakeDNS, h string) { | ||||
|  | ||||
| // Check target if is hijacked address. | ||||
| func isHijacked(target *net.UDPAddr) bool { | ||||
| 	if fakeDNS == nil { | ||||
| 		// ignore when fake DNS disabled | ||||
| 		return false | ||||
| 	} | ||||
|  | ||||
| 	for _, addr := range hijackDNS { | ||||
| 		host, port, err := net.SplitHostPort(addr) | ||||
| 		if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jason
					Jason