1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-18 17:54:30 -04:00
Commit Graph

97 Commits

Author SHA1 Message Date
Shelikhoo
87affb11a5
Correctly propagate error in AuthenticationReader readBuffer 2024-03-04 19:13:58 +00:00
Xiaokang Wang (Shelikhoo)
b6da3e86a5
Shadowsocks2022 Client Implementation Improvements (#2770)
* Shadowsocks2022 Client Implementation Improvements

1. Added UDP Replay Detection
2. Added UDP Processor State Cache
3. Added More Detailed Output for Time Difference Error
4. Replaced Mutex with RWMutex for reduced lock contention
5. Added per server session tracking of decryption cache and anti-replay window
6. Adjust server session track time
7. Increase per session buffer to 128
8. Fix client crash when EIH is not enabled
9. Fix client log contains non-human-friendly content
10.Remove mark and remove for trackedSessions
11. Fixed packet size uint16 overflow issue
2023-11-24 00:40:07 +00:00
NaLan ZeYu
a4a3f4deec
fix: Replace "math/rand" with "crypto/rand" in padding generation(#2032) 2022-10-06 18:21:09 +08:00
Shelikhoo
3ef7feaeaf
update version: auto replacement to v5 path 2022-01-02 15:16:23 +00:00
Loyalsoldier
6f8979d017
Style: format code by gofumpt (#1022) 2021-05-20 05:28:52 +08:00
Loyalsoldier
f94dd11a8c
Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
Loyalsoldier
8cb2db5321
Fix: security issues & overflow potentiality (#465) 2020-11-28 21:56:20 +08:00
RPRX
e425876afe
Fix totalSize 2020-08-04 03:50:22 +00:00
Darien Raymond
cb7646f682
remove unnecessary err object from SplitBytes 2018-11-18 19:44:32 +01:00
Darien Raymond
842a089dad
refactor multibuffer 2018-11-18 19:36:36 +01:00
Darien Raymond
0f324a613e
remove MultiBuffer.Release 2018-11-17 22:45:07 +01:00
Darien Raymond
27772a75a7
refactor MultiBuffer append 2018-11-17 09:12:20 +01:00
Darien Raymond
48cac1733f
remove NewMultiBufferCap 2018-11-16 11:29:16 +01:00
Darien Raymond
a01fdc29a6
remove NewMultiBufferValue 2018-11-16 11:08:12 +01:00
Darien Raymond
151f316c32
remove unnecessary buf allocation 2018-11-15 21:14:53 +01:00
Darien Raymond
3f3d00298a
share rand reader across auth readers 2018-11-11 16:34:58 +01:00
Darien Raymond
f7b96507f9
simplify buffer extension 2018-11-02 21:34:04 +01:00
Darien Raymond
35ccc3a49c
cleanup unnecessary method in serial. 2018-11-02 18:20:02 +01:00
Darien Raymond
58e2ed3381
remove closure on ReadFullFrom 2018-11-02 15:01:33 +01:00
Darien Raymond
9f48a6d017
enable global padding for aead by default 2018-11-02 09:15:35 +01:00
Darien Raymond
60ee80ca1b
don't write empty payload 2018-09-01 22:02:45 +02:00
Darien Raymond
475ffc8196
supress warning on ecryption packets 2018-09-01 22:02:18 +02:00
Darien Raymond
b4f3106ad6
check msg size in writepacket 2018-09-01 21:19:49 +02:00
Darien Raymond
3df32aabbc
check empty payload 2018-08-29 16:37:12 +02:00
Darien Raymond
2e11653694
remove BufferedReader.Direct 2018-08-17 20:45:23 +02:00
Darien Raymond
b769e0cc5f
only create bufferedreader when necessary 2018-08-17 16:27:35 +02:00
Darien Raymond
fdb3a7b57d
remove use of buf.NewSize() 2018-08-16 12:05:33 +02:00
Darien Raymond
6a06908456
optimize encryption read/write operations 2018-07-31 12:37:59 +02:00
Darien Raymond
d615adab36
optimize padding reading 2018-07-30 20:08:50 +02:00
Darien Raymond
7efa7ee632
prepare to remove constructor of AuthenticationReader 2018-07-09 22:27:24 +02:00
Darien Raymond
8a879deac1
max padding len as variable 2018-07-08 21:46:13 +02:00
Darien Raymond
69774c99dc
fix padding value 2018-07-07 23:48:37 +02:00
Darien Raymond
f54a8735ab
global padding in vmess protocol 2018-07-07 15:42:24 +02:00
Darien Raymond
148a7d064d
simplify buf.BufferedReader 2018-04-21 00:54:53 +02:00
Darien Raymond
3997d13b97
rename Slice and Slice from to Resize and Advance 2018-04-19 23:48:38 +02:00
Darien Raymond
66ed1bab2a
simplify BytesGenerator 2018-04-14 13:10:12 +02:00
Darien Raymond
9d7f43a299
fix lint errors 2018-04-11 16:15:29 +02:00
Darien Raymond
4b45174650
fix handling of empty buffer 2018-04-09 16:48:25 +02:00
Darien Raymond
9f198d7e3d
fix lint errors 2018-04-04 00:29:30 +02:00
Darien Raymond
7bafd7a1ab
migrate int to int32 2018-04-03 11:32:03 +02:00
Darien Raymond
c5bd23105e
change uint32 to int32 2018-04-02 22:01:55 +02:00
Darien Raymond
08dab81eb2
migrate int to int32 2018-04-02 20:00:50 +02:00
Darien Raymond
4de3f1adc1
change ReadFullFrom to take int32 size 2018-04-02 00:44:47 +02:00
Darien Raymond
5af3580bcf
correct magic number 2018-04-02 00:00:15 +02:00
Darien Raymond
3d919a6a93
optimize auth reader 2018-04-01 23:31:53 +02:00
Darien Raymond
8d0a74b3fa
refine auth writer 2018-04-01 22:41:38 +02:00
Darien Raymond
fc7da93d06
less cap 2018-03-28 22:24:01 +02:00
Darien Raymond
1cbfeea0cd
simplify NewSize calls 2018-03-12 22:10:13 +01:00
Darien Raymond
994aecd13c
rename NewLocal to NewSize 2018-03-11 23:29:17 +01:00
Darien Raymond
f97e6fa3d2
refine buffer allocation 2018-03-11 23:06:04 +01:00