Commit Graph

232 Commits

Author SHA1 Message Date
Loyalsoldier 6f8979d017
Style: format code by gofumpt (#1022) 2021-05-20 05:28:52 +08:00
Xiaokang Wang 733c5dea88
Deprecate legacy VMess header with a planned decommission (#717) 2021-03-01 21:26:54 +08:00
Loyalsoldier f94dd11a8c
Chore: change module name (#677) 2021-02-17 04:31:50 +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
lucifer 770b994337
Refine unix domain socket (#367) 2020-10-29 07:30:38 +00:00
loyalsoldier b181045b0c
Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
Kslr 876e2fcc73
Merge pull request #1904 from hex2tan/master
fixed add new vmess user bug
2019-10-27 15:27:03 +08:00
fcying fa926a1d1d access log add detour tag 2019-10-27 14:24:50 +08:00
hex2tan 3d63ec4e78
fixed add new user bug
fixed add new user bug.
when add new user, just add the key(u.email) to the map(v.cache), the value of map is nil.
2019-09-26 13:48:52 +08:00
Kslr 2451eedbc4
Merge pull request #1767 from Gondnat/addEmailIntoAccessLog
Add email into access log for shadowsocks and vmess
2019-07-13 22:50:35 +08:00
Gondnat dd048bfb29 add email into access log for shadowsocks, vmess and mux 2019-07-02 10:43:34 +08:00
Kirill Motkov 0401a91ef4 Some code improvements
* Rewrite empty string checks more idiomatically.
* Change strings.ToLower comparisons to strings.EqualFold.
* Rewrite switch statement with only one case as if.
2019-06-28 17:53:44 +03:00
Darien Raymond 1ab94fed79
optimize v2ctl size 2019-02-01 20:08:21 +01:00
Darien Raymond 3de8389361
rename CloseError() to Interrupt() 2018-12-31 21:25:10 +01:00
Darien Raymond 427679e66d
simplify task execution 2018-12-06 11:35:02 +01:00
Darien Raymond bea521537e
errors.Combine 2018-12-04 14:17:08 +01:00
Darien Raymond 769f770cf7
migrate NetworkList to []Network 2018-11-20 16:58:26 +01:00
Darien Raymond a5dcb0f13e
refactor dependency resolution 2018-10-21 10:27:13 +02:00
Darien Raymond 4fcb39ded9
comments 2018-10-18 09:25:58 +02:00
Darien Raymond 595f3d685e
merge user info inbound metadata 2018-10-15 08:36:50 +02:00
Darien Raymond b4821c5ed5
move policy and dnsClient 2018-10-11 22:34:31 +02:00
Darien Raymond 273342d0b9
move stats and inbound to features directory 2018-10-11 21:14:53 +02:00
Darien Raymond b6dc31d3fe
first part to move feature interfaces into dedicated directory 2018-10-11 20:43:37 +02:00
Darien Raymond 091fa6ad23
use new errorgen 2018-09-30 23:08:41 +02:00
Darien Raymond 7f697661cd
fix a typo 2018-09-17 11:57:56 +02:00
Darien Raymond cb2658f2bf
Revert "pooled session objects"
This reverts commit a89ff38fe6.
2018-09-14 16:51:46 +02:00
Darien Raymond a89ff38fe6
pooled session objects 2018-09-11 20:15:15 +02:00
Darien Raymond aefbc4c5de
cleanup vmess inbound handler 2018-08-31 15:50:13 +02:00
Darien Raymond 54e1bb96cc
introduce in-memory user 2018-08-27 00:11:32 +02:00
Darien Raymond 57966adf49
revert reader creation based on per-connection buffer 2018-08-17 20:54:25 +02:00
Darien Raymond d665cf3e72
refine reader creation in vmess inbound 2018-07-31 19:33:54 +02:00
Darien Raymond 5e65d7da6d
more accurate memory usage when buffer = 0 2018-07-31 16:05:57 +02:00
Darien Raymond 9a8488074e
env flag controlled global padding 2018-07-18 10:40:28 +02:00
Darien Raymond 9977eadf8c
remove dependency from errors to session 2018-06-25 01:09:02 +02:00
Darien Raymond 13f3c356ca
unified task package 2018-05-27 13:02:29 +02:00
Darien Raymond 7fa4bb434b
fix pipe closing logic for inbound proxies. 2018-05-27 11:42:01 +02:00
Darien Raymond 213f827406
policy for internal buffer size 2018-05-25 12:08:28 +02:00
Darien Raymond 148a7d064d
simplify buf.BufferedReader 2018-04-21 00:54:53 +02:00
Darien Raymond 5d23604713
rewrite ray -> pipe 2018-04-17 00:31:10 +02:00
Darien Raymond 0caf2a004b
reduce memory usage of vmess internal objects 2018-04-14 15:05:49 +02:00
Darien Raymond 0caf92726b
better way to run tasks in parallel 2018-04-11 16:45:09 +02:00
Darien Raymond 076f385e4b
stop recording mux access log 2018-04-04 21:32:54 +02:00
Darien Raymond fa63beceb6
fix double release on buffers 2018-03-28 22:23:24 +02:00
Darien Raymond 546c2fb226
settings for forcing secure encryption in vmess server 2018-02-23 12:13:02 +01:00
Darien Raymond 6b872c266c
session id 2018-02-22 15:26:00 +01:00
Darien Raymond 88b25d38cb
simplify context retrieval 2018-02-21 17:05:29 +01:00
Darien Raymond 8460d016ab
fix address parsing for mux 2018-02-09 17:48:09 +01:00
Darien Raymond 05d93e5eb0
fix handling for empty email addresses 2018-02-09 11:43:23 +01:00
Darien Raymond 87ba7dd0d1
implement remove user in vmess 2018-02-09 11:32:12 +01:00
Darien Raymond efcb567273
remove context in struct 2018-02-08 15:39:46 +01:00