1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
Commit Graph

5601 Commits

Author SHA1 Message Date
Shelikhoo
e65f96fa6b
output debug message when ACAutomatonDomainMatcher is enabled. 2021-03-03 22:56:12 +00:00
Shelikhoo
38b0f026fe
json parsing rule for domain matcher 2021-03-03 22:35:55 +00:00
Shelikhoo
9d653dc708
Apply domain selector choice 2021-03-03 22:27:23 +00:00
Shelikhoo
837d5e7618
Allow the selection of domain matcher 2021-03-03 22:23:52 +00:00
DarthVader
a31a8e6f89
A memory-efficient and fast hybrid matcher (#639)
* a faster DomainMatcher implementation

* rename benchmark name

* fix linting errors

* add hybrid matcher

* add rabin-karp algorithm

* rename test & fix linting errors

* add more comment

* format code

* revert `MatcherGroup` match func

* fix linting errors
2021-03-04 05:39:51 +08:00
Loyalsoldier
49cf614346
Chore: update dependencies & protobuf (#728) 2021-03-03 17:31:53 +08:00
Loyalsoldier
45740be4af
Fix panic: index out of range (#727) 2021-03-03 16:53:42 +08:00
Shelikhoo
77bddcceb7
Test for Imaginary Security Level: zero 2021-03-01 16:13:59 +00:00
Shelikhoo
1368e92605
Imaginary Security Lever: zero: turn off all security on payload data 2021-03-01 15:39:52 +00:00
Shelikhoo
770a2bc1a3
Regenerate protobuf for Zero Security imaginary security level 2021-03-01 15:32:19 +00:00
Shelikhoo
833997df5a
Zero Security imaginary security level 2021-03-01 15:30:36 +00:00
Xiaokang Wang
733c5dea88
Deprecate legacy VMess header with a planned decommission (#717) 2021-03-01 21:26:54 +08:00
秋のかえで
b084b4f980
Fix ALPN being set to h2 by default when using TCP (#716) 2021-03-01 16:23:59 +08:00
Shelikhoo
616b0d122e
Fix for context with empty content 2021-02-28 20:42:32 +00:00
Shelikhoo
e532085d3c
don't build tagged outbound dial on configure setting 2021-02-28 19:59:45 +00:00
Shelikhoo
bf6e8f2389
Added Auto generated file 2021-02-28 19:58:22 +00:00
Shelikhoo
9722488fd6
Disable routing for platform initialized detour 2021-02-28 19:57:57 +00:00
Shelikhoo
6925870600
Fix forced outbound tag not set correctly 2021-02-28 19:57:21 +00:00
Shelikhoo
5f3851df39
Fix dependency cycle caused by core import in internet package 2021-02-28 19:10:38 +00:00
Shelikhoo
dd51d32250
Added Transport Layer Chained Proxy Support 2021-02-28 18:47:31 +00:00
Shelikhoo
8980cf2fcc
Regenerate protobuf for transport layer chain proxy 2021-02-28 17:52:16 +00:00
Shelikhoo
aaa55fc9d2
Add definition for transport layer chained proxy 2021-02-28 17:50:45 +00:00
Kid
d2a4e6bc47
Add /opt to assets location (#715) 2021-02-27 17:09:48 +08:00
dependabot[bot]
9fd5cdd8a8
Chore: bump github.com/miekg/dns from 1.1.39 to 1.1.40 (#712)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-26 13:42:36 +08:00
dependabot[bot]
2e1cdd52e9
Chore: bump google.golang.org/grpc from 1.35.0 to 1.36.0 (#711)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-26 11:29:51 +08:00
GitHub Action
8eb5996128 update geoip, geosite 2021-02-26 00:10:25 +00:00
Loyalsoldier
9d13f99633
Chore: format file & change names of test cases (#707) 2021-02-24 17:12:44 +08:00
CalmLong
7ebf3afc31
Feat: add disableCache option for DNS (#705)
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-02-24 16:03:50 +08:00
Loyalsoldier
4fb792fbd6
Chore: update golangci-lint & workflow (#704) 2021-02-24 14:22:37 +08:00
dependabot[bot]
bcbb96657c
Chore: bump github.com/miekg/dns from 1.1.38 to 1.1.39 (#702)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-24 14:21:29 +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
Shelikhoo
232ba8c26f
Apply coding style 2021-02-22 13:49:36 +00:00
Shelikhoo
9c9c45fe4f
Add Test for the KDF value 2021-02-22 13:25:12 +00:00
Shelikhoo
0024c6e028
Fix incorrect HMac Chaining, further checking needed 2021-02-22 13:20:36 +00:00
Loyalsoldier
efb963237c
Fix: go generate command for Go v1.16 (#695)
* Fix: go generate command for Go v1.16
* Chore: ignore go generate binaries
* Chore: regenerate mock files
* Chore: update dependencies
2021-02-20 20:43:19 +08:00
dependabot[bot]
1f0d842060
Chore: bump actions/stale from v3.0.16 to v3.0.17 (#690) 2021-02-19 13:47:01 +08:00
Loyalsoldier
a545bfe2c8
Feat: use Go v1.16 & support Apple Silicon (#686) 2021-02-19 13:24:19 +08:00
GitHub Action
6524e52439 update geoip, geosite 2021-02-19 00:10:15 +00:00
Loyalsoldier
0000b60a36
Chore: update dependencies (#681) 2021-02-17 06:49:41 +08:00
Loyalsoldier
4aa536292e
Fix: codeql workflow alert (#682) 2021-02-17 06:36:02 +08:00
Loyalsoldier
612bf6a65d
Chore: update LICENSE year (#680) 2021-02-17 05:27:52 +08:00
Loyalsoldier
aa1cc3da0a
Chore: refine .gitignore (#679) 2021-02-17 05:23:08 +08:00
Loyalsoldier
07a63bc901
Chore: refine workflows (#678) 2021-02-17 05:16:31 +08:00
Loyalsoldier
f94dd11a8c
Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
dependabot[bot]
0957442e01
Chore: bump golangci/golangci-lint-action from v2.3.0 to v2.4.0 (#674)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from v2.3.0 to v2.4.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2.3.0...544d2efb307b3f205f34886f2787046abe7fb26e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-15 15:49:24 +08:00
GitHub Action
f4f4e4280d update geoip, geosite 2021-02-12 00:09:59 +00:00
Loyalsoldier
afcbb4feb8
Chore: update dependencies (#671) 2021-02-11 15:14:18 +08:00
Loyalsoldier
f98944c9e0
Chore: update protobuf (#670) 2021-02-11 14:57:20 +08:00
Xiaokang Wang
38da831b75
Feature: Fake DNS support (#406)
* Add fake dns

A new config object "fake" in DnsObject for toggling fake dns function

Compare with sniffing, fake dns is not limited to http and tls traffic.
It works across all inbounds. For example, when dns request come
from one inbound, the local DNS server of v2ray will response with a
unique fake IP for every unique domain name. Then later on v2ray
received a request to one of the fake IP from any inbounds, it will
override the request destination with the previously saved domain.

By default, v2ray cache up to 65535 addresses. The old records will
be discarded bases on LRU. The fake IP will be 240.x.x.x

* fix an edge case when encounter a fake IP in use

* Move lru to common.cache package

* Added the necessary change to obtain request IP from sniffer

* Refactor the code so that it may stop depending on global variables in the future.

* Replace string manipulation code with more generic codes, hopefully this will work for both IPv4 and IPv6 networks.

* Try to use IPv4 version of address if possible

* Added Test Case for Fake Dns

* Added More Test Case for Fake Dns

* Stop user from creating a instance with LRU size more than subnet size, it will create a infinite loop

* Move Fake DNS to a separate package

* Generated Code for fakedns

* Encapsulate Fake DNS as a Instance wide service

* Added Support for metadata sniffer, which will be used for Fake DNS

* Dependency injection for fake dns

* Fake DNS As a Sniffer

* Remove stub object

* Remove global variable

* Update generated protobuf file for metadata only sniffing

* Apply Fake DNS config to session

* Loading for fake dns settings

* Bug fix

* Include fake dns in all

* Fix FakeDns Lint Condition

* Fix sniffer config

* Fix lint message

* Fix dependency resolution

* Fix fake dns not loaded as sniffer

* reduce ttl for fake dns

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Apply Coding Style

* Fix crashed when no fake dns

* Apply Coding Style

* Fix Fake DNS do not apply to UDP socket

* Fixed a bug prevent FakeDNS App Setting from become effective

* Fixed a caveat prevent FakeDNS App Setting from become effective

* Use log comparison to reduce in issue when it comes to really high value typical for ipv6 subnet

* Add build tag for fakedns

* Removal of FakeDNS specific logic at DNS client: making it a standard dns client

* Regenerate auto generated file

* Amended version of configure file

* Bug fixes for fakeDNS

* Bug fixes for fakeDNS

* Fix test: remove reference to removed attribute

* Test: fix codacy issue

* Conf: Remove old field support

* Test: fix codacy issue

* Change test scale for TestFakeDnsHolderCreateMappingAndRollOver

* Test: fix codacy issue

Co-authored-by: yuhan6665 <1588741+yuhan6665@users.noreply.github.com>
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Co-authored-by: kslr <kslrwang@gmail.com>
2021-02-08 18:18:52 +08:00
dyhkwong
d8bc41e653
support enforcing VMessAEAD via environment variable (#596)
* support enforcing VMessAEAD via env var

to prevent downgrade attack

* Add comments to make Codacy Production happy
2021-02-08 18:08:01 +08:00