Commit Graph
100 Commits
Author SHA1 Message Date
Shelikhoo 1eaec6818a Fix max delay unintentionally low 2021-03-16 12:49:23 +00:00
Shelikhoo 1440697240 update version 2021-03-13 14:06:23 +00:00
0e5e5164ff loopback outbound, allow you to redirect connection to the dispatcher again (#770)
* Added Loop back proxy

* Added json processing for lo proxy

* Fix bug for lo proxy

* Fix bug for lo proxy

* rename the outbound name

* Loopback: update naming and fix lint issues

* Chore: change lo to loopback

Co-authored-by: kslr <kslrwang@gmail.com>
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-03-13 17:25:56 +08:00
Shelikhoo 971eddaa12 fix applied wrong name, and wrong varible name 2021-03-11 15:02:31 +00:00
aaa9e788e7 Grpc Gun Transport (#757)
* introduce grpc transport structure

* fix package name inconsistency

* grpc gun transport dialer and listener

* add selective build tag

* add grpc:gun listener

* add grpc:gun config

* add generated files

* various bug fix for gun:grpc transport

* Cache dialed connections

* grpc:gun Use V2Ray Managed Dial function

* Update destination.pb.go

* Update gun.go

* GunSettings -> GunConfig

* gu -> gs

* add grpc alias

Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
Co-authored-by: kslr <kslrwang@gmail.com>
2021-03-11 16:46:17 +08:00
Shelikhoo 2eda576547 update version to 4.35.1 2021-03-07 13:42:17 +00:00
Shelikhoo e24ddf588e Create a name for linear domain matcher 2021-03-07 13:39:36 +00:00
Shelikhoo 867bbb429e create session content in the context if do not exist yet 2021-03-06 14:33:20 +00:00
Shelikhoo b585f2283a fixing misbehaving code in mux that do not propagate context 2021-03-06 14:31:46 +00:00
Shelikhoo 8cf51a847e fix misbehaving code crash and create bug on transport level front proxy 2021-03-06 13:53:25 +00:00
Shelikhoo e22cf451f4 Allow bulk definition of domain matcher at parent level 2021-03-05 18:37:32 +00:00
Shelikhoo 0043dd6685 rename config for NewACAutomatonDomainMatcher to hybrid 2021-03-05 18:36:36 +00:00
Shelikhoo 9103f05e5c Merge branch 'master' of github.com:v2fly/v2ray-core 2021-03-05 16:27:17 +00:00
Shelikhoo e8ac0412a5 workaround crash when V is not in context 2021-03-05 16:27:02 +00:00
Shelikhoo 1f9c4eebb8 update version 2021-03-04 11:17:36 +00:00
Shelikhoo 7dabfb755e merge vmess zero encryption support 2021-03-04 00:12:37 +00:00
Shelikhoo 0010783191 Merge chained proxy with transport support 2021-03-03 23:27:26 +00:00
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
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
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
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
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
Xiaokang Wang 999165bf93 Update deb.yml 2020-11-21 14:40:27 +00:00
Xiaokang Wang 61112d8af7 Workaround for muti-json's hard coded override method (#409)
* Simple workaround for muti-json unable to automatically understand new config options.

* Update jsonem.go
2020-11-21 02:50:46 +08:00
Xiaokang Wang fb0aadeea9 Transfer VSign and related project to V2Fly and share under the same license as v2ray-core (#392)
* Move VSign to V2Fly

* Use transfered V2BuildAssist  project
2020-11-08 03:11:45 +08:00
Xiaokang Wang 3684dc15de Merge pull request #351 from v2fly/dev-fix-mutijson-dep
Fix json parsing dependency introduced by mutijson config
2020-10-26 15:44:58 +00:00
Shelikhoo 9391f7c377 Apply Coding Style 2020-10-23 19:51:39 +01:00
Shelikhoo 0aee8053e8 Merge branch 'master' of github.com:v2fly/v2ray-core 2020-10-23 17:02:59 +01:00
Shelikhoo fd2638c522 Fix json parsing dependency introduced by mutijson config 2020-10-23 15:04:03 +01:00
Shelikhoo e2e266114a Fix incorrect IV usage which slightly reduced security 2020-09-12 16:27:40 +08:00
Shelikhoo 8c82fd3e6d update version 2020-08-29 10:31:15 +08:00
Shelikhoo 0fdc818231 Update VSign Version 2020-08-29 10:27:23 +08:00
Shelikhoo e97b9b5f3c Merge branch 'master' of github.com:v2fly/v2ray-core 2020-08-26 17:10:03 +08:00
Shelikhoo a40727a3dc added drain for ss and improved vmess drain 2020-08-26 13:51:23 +08:00
Shelikhoo d2266bb52c Alias for ext: to reduce ambiguous ext: used without context 2020-07-11 09:24:03 +08:00
Shelikhoo b02a781ab9 Update Version 2020-07-05 16:40:59 +08:00
Shelikhoo 1be3d52787 Allow VSign function to be disabled if V2Ray is included in a package and should be verified by the package manager. 2020-07-05 08:55:10 +08:00
Shelikhoo 3952f81b49 Update Signing key 2020-07-05 08:52:29 +08:00
Shelikhoo b23c4fce05 Adopt to new signature key and format (Fix) 2020-07-04 21:04:38 +08:00
Shelikhoo 432bc627bb Adopt to new signature key and format 2020-07-04 20:28:15 +08:00
Shelikhoo 8c415a791b Merge branch 'master' of github.com:v2fly/v2ray-core 2020-07-04 13:53:17 +08:00
Shelikhoo 437a66b7de Added Unit Test for VMessAEAD 2020-07-04 13:48:47 +08:00
Shelikhoo ad1927e6f9 Actually Request the SIGN 2020-07-03 16:07:15 +08:00
Shelikhoo 9928eca26f Fix bug with tag name extract 2020-07-03 14:55:31 +08:00
Xiaokang Wang a5fa0f5afd Merge pull request #43 from v2fly/dev-cimanifest
Generate and Sign Manifest
2020-07-03 13:14:20 +08:00
Shelikhoo 40e21fde1d Added Signing Request 2020-07-03 00:34:15 +08:00
Shelikhoo 9142c0d9a8 Generate manifest on tag release 2020-07-02 20:27:34 +08:00
Shelikhoo d2064b0021 Bug fix 2020-07-02 19:40:44 +08:00
Shelikhoo dadcda034d Generate Manifest for bleeding edge release 2020-07-02 19:10:38 +08:00
Shelikhoo e4acbcee8f Allow the use of Browser Bridge 2020-06-28 15:54:53 +08:00
Shelikhoo 218d6204b8 Fix test break on socks TestSocksConformance, use ip instead of hostname 2020-06-28 13:59:26 +08:00
Shelikhoo f19f95af35 Update AEAD design to rely more on AEAD 2020-06-26 20:15:37 +08:00
Xiaokang Wang 327a6ee1f7 Merge pull request #18 from darhwa/enhance_http_outbound
使http outbound支持连接https与http/2代理服务器
2020-06-25 16:25:44 +08:00
Xiaokang Wang dd106b7cda Merge pull request #35 from DuckSoft/patch-2
dohdns.go: multiple typo fixes
2020-06-25 16:10:46 +08:00
Shelikhoo d6cad0b426 Update Version 2020-06-19 22:24:58 +08:00
Shelikhoo 38868e0469 Fix context layering in Shadowsocks UDP 2020-06-19 17:52:39 +08:00
Shelikhoo 3e13d79af7 Fix TProxy Process Logic 2020-06-18 13:40:48 +08:00
Shelikhoo 85bd352bc1 propagate context 2020-06-18 12:37:10 +08:00
Shelikhoo 73616ab9e2 branch context instead of layer it 2020-06-18 12:01:37 +08:00
Shelikhoo 9e62f4a934 Merge branch 'master' of github.com:v2fly/v2ray-core
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2020-06-18 11:20:18 +08:00
Shelikhoo a26534c79c Allow client to submit a context in v2ray.New 2020-06-18 11:19:05 +08:00
Xiaokang Wang 4eeb913c9a Update core.go 2020-06-10 18:17:18 +08:00
Xiaokang Wang 448d24496c Merge pull request #10 from rprx/patch-1
Update Golang version to 1.14.4
2020-06-10 18:15:46 +08:00
Xiaokang Wang e920d39b11 Update core.go
Update Version
2020-06-10 18:13:43 +08:00
Xiaokang Wang e4ec9807a2 Merge pull request #12 from zhuobixin/master
LocalAddr() should return local address
2020-06-10 17:45:08 +08:00
Shelikhoo 8988dc32b9 Update Version 2020-06-10 11:15:28 +08:00
Shelikhoo aece8a6a86 Added Seed to mKCP, encrypts the packets 2020-06-09 08:36:40 +08:00
Shelikhoo d06a4d1f50 Added TestsEnabled Settings to enable VMessAEAD test 2020-06-08 16:50:50 +08:00
Shelikhoo 00103d1f73 Fix tests 2020-06-08 16:16:50 +08:00
Shelikhoo 09b81b78c3 regenerate pb data 2020-06-08 16:16:32 +08:00
Shelikhoo da0b63bc12 allow user to define tests enable for this server 2020-06-08 14:20:31 +08:00
Shelikhoo 870ff52775 Apply Coding Style 2020-06-08 13:25:33 +08:00
Shelikhoo 8c886b4b46 Apply Coding Style 2020-06-08 13:21:59 +08:00
Shelikhoo a58b20b5b8 Reserve sign bit 2020-06-08 10:23:59 +08:00
Shelikhoo 78d7b4f183 Check replay only for AEAD connection, and later 2020-06-06 20:54:29 +08:00
Shelikhoo 9fc37646b6 Check replay only for AEAD connection 2020-06-06 20:51:01 +08:00
Shelikhoo 6a29fa5fe2 Enable AEAD by Default 2020-06-06 20:37:30 +08:00
Shelikhoo 8d489f6c7c Make taint acquire lesser lock 2020-06-06 19:22:27 +08:00
Shelikhoo 6007e4cc6f Detailed AEAD Auth Error 2020-06-06 18:57:49 +08:00
Shelikhoo 9bf07b1f26 VMess AEAD Experiment 2020-06-06 17:11:30 +08:00
Shelikhoo b610fc0a70 make error less sensitive 2020-06-03 16:32:58 +08:00
Shelikhoo d31a067fc3 Release Version 2020-06-03 16:09:16 +08:00
Shelikhoo b760ac149d Merge branch 'master' of github.com:v2fly/v2ray-core 2020-06-03 16:06:23 +08:00