Skip to content

Commit

Permalink
chore: update main_tun for custom_proxy_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
cxz66666 committed Feb 6, 2024
1 parent 44f90e6 commit a3690b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_tun.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func main() {
ipResource, _ = ipSetBuilder.IPSet()
}

for _, customProxyDomain := range conf.CustomProxyDomain {
domainResource[customProxyDomain] = true
}

vpnStack, err := tun.NewStack(vpnClient, conf.DNSHijack)
if err != nil {
log.Fatalf("Tun stack setup error, make sure you are root user : %s", err)
Expand Down

0 comments on commit a3690b9

Please sign in to comment.