fix two situation: active incomming connection and local doh(dns over https) query

1. return incoming connection directly, v2ray tproxy seems not work for this situation, maybe a v2ray bug
2. exclude lo to avoid local bind problem, for example if your dns is 127.0.0.1:53 for doh, then v2ray can't bind to reply back result
This commit is contained in:
fancy
2020-04-22 14:40:31 +08:00
parent 8957aa5f04
commit e8684c936f
2 changed files with 25 additions and 11 deletions

View File

@@ -11,12 +11,14 @@ enable_udp=true
enable_ipv4=true
enable_ipv6=true
## v2ray outbound mark
## v2ray outbound mark, depend on your v2ray setting
## only useful if v2ray process is also in proxy_cgroup, for example, you want to proxy whole userspace,
## and v2ray is also running in userspace
## and v2ray is also running in the same userspace
## otherwise ignore this
v2ray_so_mark=255
## do not modify this if you don't known what you are doing
mark=2333
table=100
table=100
mark=100
mark_newin=1
v2ray_so_mark=255