1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 23:06:14 -04:00
v2fly/proxy/vmess
Chinsyo dc78733196
Refactor common/antireplay, unexport unnecessary public fields. (#422)
* rename AuthIDDecoderHolder private fields

* ignore unused return value more clear

* change PoolSwap to private fields

* refactor Unlock to defer

* use const capacity, reorder code layout

* replace mismatch field name poolX with type Filter

* change AntiReplayTime to private fileds, protect to modify

* rename lastSwapTime to lastSwap

* merge duplicate time.Now.
Since the current unit is in seconds, there is no need to repeat the call

* refine negate expression

* rename antiReplayTime to interval

* add docs

* fix lint stutter issue, rename antireplay.AntiReplayWindow to antireplay.ReplayFilter

* rename fileds m,n to poolA,poolB

* rename antireplay.go to replayfilter.go

* fix build issue

Co-authored-by: Chinsyo <chinsyo@sina.cn>
2020-11-17 21:05:26 +08:00
..
aead Refactor common/antireplay, unexport unnecessary public fields. (#422) 2020-11-17 21:05:26 +08:00
encoding Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
inbound 32 -> 0 2020-11-02 11:00:08 +00:00
outbound Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
account.go VMess AEAD will be used when alterId is 0 2020-09-09 00:02:53 +08:00
account.pb.go Format proto files using clang-format according to google style (#264) 2020-10-05 08:36:40 +08:00
account.proto Format proto files using clang-format according to google style (#264) 2020-10-05 08:36:40 +08:00
errors.generated.go simplify error creation 2018-09-30 18:39:53 +02:00
validator_test.go VMess AEAD Experiment 2020-06-06 17:11:30 +08:00
validator.go Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
vmess.go Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
vmessCtxInterface.go Make isAEAD more efficient 2020-09-21 01:10:56 +00:00