Commit Graph
443 Commits
Author SHA1 Message Date
loyalsoldier 8ced9c330c Merge branch 'master' into v5 2021-04-03 09:15:19 +08:00
LoyalsoldierandGitHub e6aaa57def Feat: add queryStrategy option for DNS (#794) 2021-03-19 15:55:18 +08:00
LoyalsoldierandGitHub 9e9173acb4 Chore: update protobuf & dependencies (#793)
* Chore: update protobuf
* Chore: regenerate mock files
* Chore: update dependencies
* Chore: use Go v1.16.2 and later
2021-03-18 12:17:26 +08:00
loyalsoldier ab09286eec Chore: format code 2021-03-16 08:50:04 +08:00
loyalsoldier 327ad1a52a Merge branch 'master' into v5 2021-03-16 08:38:04 +08:00
LoyalsoldierandGitHub 88e1e25aa9 Chore: format import using goimports (#780) 2021-03-14 07:09:51 +08:00
Shelikhoo 77bddcceb7 Test for Imaginary Security Level: zero 2021-03-01 16:13:59 +00:00
loyalsoldier 8ea06ba81d Merge branch 'master' into v5 2021-02-24 17:26:17 +08:00
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
ebbf31f07e improve commands (#648)
* stat show json refactor
> will show {} since scripts should expect it, its the json style of blank value

* combine statistics commands to one

* code optimize

* fix runtime flag

* remove json indent

* change overridden to override

* api bi -json

* convert stdin support
code optimize

* writeRow() code optimize
add stats tittle
revert back to restartlogger

* api log -restart

* follow log

* codeql

* move -json to shared flags

* flags optimize
* update flag descriptions
* change "-v" of "api bo" to duration
* change "-expire" of "tls cert" to days

* cmds short description optimize

* fix multiple log followers

* Format loader refactor
* "infra/conf/merge" refactor
* "LoadConfig" refactor
* add "infra/conf/mergers"
    * contribute to it will benifit `v2ray run`,`v2ray test`,`v2ray convert`
    * easily add new formats, by just adding a converter like json.FromTOML
* default format auto, to all cmds above
    * auto detect input format
    * mixed formats support
* better stdin behavior
    * don't wait if no content
    * don't use 'stdin:' placeholder
* `v2ray test` now behaves exactly the same with `v2ray run`, including stdin reading

* api ado, adi, rmo, rmi refactor
* support folders to files resolving, mixed formats
* remove remaining 'stdin:' placeholders

* fix tests
* os.Stdin.Stat() behaves different in platforms, removed

* code optimize

Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-02-21 23:02:42 +08:00
LoyalsoldierandGitHub 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
loyalsoldier d581fb9c00 Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
LoyalsoldierandGitHub f94dd11a8c Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
loyalsoldier c0c815bd52 Merge branch 'master' into v5 2021-01-12 10:46:59 +08:00
LoyalsoldierandGitHub f5ad09103f Chore: format code (#600) 2021-01-12 10:44:12 +08:00
KslrandGitHub 795a3f632d Test: fix race issue (#598)
other "race" problems are only in the test, and so I deleted the detection
2021-01-11 20:50:58 +08:00
KslrandGitHub 405a051c50 Test: fix http2 dial timeout (#570)
* fix http2 dial timeout
2021-01-11 17:03:03 +08:00
loyalsoldier 7fc30aca79 Merge branch 'master' into v5 2021-01-01 12:54:09 +08:00
loyalsoldier 87e857ee3f Chore: minor fixes 2021-01-01 12:52:04 +08:00
KslrandGitHub 42f0f5dfec remove deprecate ciphers in shadowsocks (#566)
* remove deprecate ciphers in shadowsocks
2021-01-01 10:18:00 +08:00
6d25d51519 Update protobuf version (#527)
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2020-12-20 10:50:46 +08:00
loyalsoldier e6bea0d112 Merge branch 'master' into v5 2020-12-18 17:37:01 +08:00
291eff1aa3 Refine Android build (#525)
Co-authored-by: ghost <noreply@example.com>
2020-12-17 08:50:13 +08:00
loyalsoldier 659f16e8ee Merge branch 'master' into v5 2020-12-05 23:49:51 +08:00
LoyalsoldierandGitHub 5e99737c12 Fix: close response body (#484) 2020-12-03 16:07:41 +08:00
loyalsoldier 483103a16b Merge branch 'master' into v5 2020-12-03 00:01:36 +08:00
LoyalsoldierandGitHub 45aeaa8080 Refine pick port logic (#481) 2020-12-02 23:48:32 +08:00
LoyalsoldierandGitHub ff09993c8b Refine coverall (#472) 2020-12-02 21:57:31 +08:00
KslrandGitHub 5bebe87492 Fix: test run command (#463) 2020-11-27 08:19:52 +08:00
LoyalsoldierandGitHub b68f943c78 Fix lint according to golangci-lint (#439) 2020-11-22 05:05:01 +08:00
loyalsoldier 784775f689 Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
KslrandGitHub 9f344fa1c9 remove shadowsosks ota (#238)
* remove shadowsosks ota

* remove unused buf.Reader
2020-10-02 16:13:31 +08:00
loyalsoldier 1fa89b32d4 Format: run go fmt ./... 2020-08-30 21:17:22 +08:00
Shelikhoo 218d6204b8 Fix test break on socks TestSocksConformance, use ip instead of hostname 2020-06-28 13:59:26 +08:00
Kslr 475676eb87 update h12.io/socks 2020-06-27 20:36:10 +08:00
Agioi TheodoroiandKslr bbd3988f3d clean up code 2020-06-27 07:51:42 +08:00
kslr 78729fc698 improve test coverage 2020-06-20 16:10:07 +08:00
Kslr 51be32fa12 actions add coverage 2020-06-20 03:07:58 +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 38e89bd2c7 VMess will Drain Connection On Auth failure 2020-06-03 11:25:47 +08:00
Shelikhoo 4448d37c2b Merge branch 'master' of github.com:v2ray/v2ray-core 2019-12-26 19:34:48 +08:00
vcptr 2a78af34fd fix: KCPLarge buffer size too small 2019-11-27 14:40:28 +08:00
Shelikhoo 8cf38342e9 Delay Closing Connection so that test have chance to complete(Additional) 2019-06-07 12:05:06 +08:00
Shelikhoo dd8e957f59 Delay Closing Connection so that test have chance to complete 2019-06-07 10:01:23 +08:00
Shelikhoo 73182c5952 Disable coverage upload 2019-04-16 15:02:37 +08:00
Darien Raymond 950e226293 run coverage with go module 2019-02-13 11:06:39 +01:00
Darien Raymond 932e09a388 remove dep of assert lib 2019-02-09 15:46:48 +01:00
Darien Raymond 0f805ef81d fix blackhole test for windows 2019-02-07 19:29:32 +01:00
Darien Raymond bd231b6b8c extend timeout 2019-02-06 12:33:27 +01:00