1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-26 13:56:12 -04:00
v2fly/proxy
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
..
blackhole Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
dns Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
dokodemo Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
freedom Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
http Disable 0-rtt mechanism for http/1 outbound (#372) 2020-10-31 11:03:46 +08:00
mtproto Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
shadowsocks Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
socks Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
trojan Add V2RAY_TROJAN_XTLS_SHOW (#391) 2020-11-07 14:32:42 +00:00
vless Fix stat 2020-11-12 08:45:03 +00:00
vmess Refactor common/antireplay, unexport unnecessary public fields. (#422) 2020-11-17 21:05:26 +08:00
proxy.go Apply Debian's patch to upstream 2020-06-24 12:57:03 +08:00