1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 09:26:21 -05:00
Commit Graph

27 Commits

Author SHA1 Message Date
Vigilans
f8ac919d66
[app/dns] Support per-client configuration for fakedns (#2212)
* Move `filterIP` from `hosts.go` to `dnscommon.go`

* Implement adding pools for fakedns.HolderMulti

* Implement per-client fakedns for DNS app

* Remove `dns.ClientWithIPOption` and replace with new programming model

* Implement JSON config support for new fakedns config

* Fix lint and tests

* Fix some codacy analysis
2022-12-15 10:38:28 +08:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Ye Zhihao
d4da365c5f
Refactor: strmatcher module (#1333)
* Reorganize strmatcher's package structure

* Rename types in strmatcher package according to their file names

* Stablize strmatcher's Matcher interface

* Implement []matcherEntry as SimpleMatcherGroup

* Implement mph algorithm extracted from MphIndexMatcher as MphMatcherGroup

* Implement AddMatcher/AddFullMatcher/AddDomainMatcher/AddSubstrMatcher for each MatcherGroup

* Stablize strmatcher's MatcherGroup interface

* Stablize strmatcher's IndexMatcher interface

* Update strmatcher's benchmark

* Compatibility fix for app/router's DomainMatcher condition

* Fix code quality issue

* Fix basic matcher issues

* Update priority specification for Substr matcher
2021-10-31 18:01:13 +08:00
Shelikhoo
350ac46b41
update dns to adapt to protobuf change 2021-09-07 08:03:29 +01:00
Jebbs
b05a469488
v5: Remove v2ctl & wv2ray (rebased from 7c1ab06206) 2021-09-04 11:09:55 +01:00
database64128
c78ee5aac7
🏡 Housekeeping: Update to Go 1.17 (#1215)
* ⬆ Update to Go 1.17

* 🏗 Update workflows and add windows-arm64

* 💾 Update generated files

* 📛 Update not-so-friendly filenames
2021-08-21 13:20:40 +08:00
Loyalsoldier
47bbb5a3de
Fix: DNS hosts proxied domain priority (#886) 2021-04-11 11:52:12 +08:00
Loyalsoldier
bada0e48b4
Feat: DNS hosts support multiple addresses (#884) 2021-04-10 21:56:08 +08:00
yuhan6665
afb8385a7e
Feat: routing and freedom outbound ignore Fake DNS (#696)
Turn off fake DNS for request sent from Routing and Freedom outbound.
Fake DNS now only apply to DNS outbound.
This is important for Android, where VPN service take over all system DNS
traffic and pass it to core.  "UseIp" option can be used in Freedom outbound
to avoid getting fake IP and fail connection.

Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-02-23 10:17:20 +08:00
Loyalsoldier
f94dd11a8c
Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
Ye Zhihao
d8c03f10b5
Refactoring: DNS App (#169)
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2020-12-18 17:24:33 +08:00
loyalsoldier
784775f689
Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
Vigilans
c74a33f827 Amending domain matcher with returning array of all matches 2020-08-11 13:31:04 +08:00
Darien Raymond
c27050ad90
fix usability for both IPv4 and v6 in static dns mapping 2019-02-21 00:03:31 +01:00
Darien Raymond
1ab94fed79
optimize v2ctl size 2019-02-01 20:08:21 +01:00
Darien Raymond
ffb3793b26
support domain to domain mapping in static host 2019-01-30 21:04:29 +01:00
Darien Raymond
fc1e660c27
change net.IP to net.Address 2018-12-28 20:15:22 +01:00
Darien Raymond
39a092b178
fix #1427 2018-11-22 19:07:49 +01:00
Darien Raymond
bb8cab9cc7
change from map to slice 2018-11-20 17:15:11 +01:00
Darien Raymond
bb1efdebd1
support querying either IPv4 or IPv6 dns 2018-11-19 20:42:02 +01:00
Darien Raymond
a14fae4b35
fix lint warnings 2018-11-13 23:19:58 +01:00
Darien Raymond
abf0cb1ec4
move function to features 2018-10-13 15:15:49 +02:00
Darien Raymond
909cb9b27a
announce deprecated proto settings 2018-09-21 16:54:06 +02:00
Darien Raymond
5649c7ba2d
support regex domain type in dns 2018-09-19 16:10:42 +02:00
Darien Raymond
f227e85b54
support per-domain prioritized name server 2018-08-24 21:51:03 +02:00
Darien Raymond
059dfdbb97
doc for strmatcher interface 2018-08-20 15:39:58 +02:00
Darien Raymond
d5f7728acd
support subdomain matching in dns hosts 2018-06-26 22:34:05 +02:00