9seconds
1575b82688
Update golangci-lint
il y a 4 ans
9seconds
d8b14dc765
Add fuzzing for client hello
il y a 4 ans
9seconds
e0850869ba
Linting
il y a 4 ans
9seconds
9375552180
Add fuzz tests for obfuscated2
il y a 4 ans
9seconds
5282ca26f3
Update golangci-lint to 1.44.2
il y a 4 ans
9seconds
1a9bc80091
Unexport an error that is not required
il y a 4 ans
9seconds
b15a8ec4a5
More correct error if no addresses are found
il y a 4 ans
9seconds
93bed24a0b
Remove all cleverness that broke uploads
il y a 4 ans
9seconds
e7416bc04d
Fix lint issues
il y a 4 ans
9seconds
33e0509c5a
Optimize for a fast flush
il y a 4 ans
9seconds
ffad717829
Use CloseRead and CloseWrites
il y a 4 ans
9seconds
7b1f86b75d
wip
il y a 4 ans
9seconds
a5e59d9ef7
Add syncPair
il y a 4 ans
9seconds
ce8163d1b7
Minor simplification
il y a 4 ans
9seconds
66f4d967e7
Get rid of buffersize everywhere
il y a 4 ans
9seconds
fbe4d32590
Fallback to another DC if given is unknown
il y a 4 ans
9seconds
ca5800cf60
Simplify tcp relay time randomization
il y a 4 ans
9seconds
456ed5b051
Change algorithm of TCP relaying
il y a 4 ans
9seconds
e1864377c2
Update golangci-lint to 1.40.1
il y a 5 ans
9seconds
16f9ec690b
Fix race condition in closing a relay
This commit fixes a situration when relay can be reset before all
waiting goroutines are finished. For example, we terminate processing
based on some event: socket error etc. So, error happens and context is
cancelled. After that a main relay goroutine starts to wait. Meanwhile a
second goroutine reaches deferred function and set wg to done. It means
that main goroutine can continue.
In this case this is really possible that we can start resetting before
transmit goroutine really exits.
A correct solution is to always do wg.Done() as a first deferred thing
on entering to a function. In that case we do not need reordering and so
on.
il y a 5 ans
9seconds
115510985a
Add option to use telegram test dcs
il y a 5 ans
9seconds
585ebfeb50
Update golanci-lint
il y a 5 ans
9seconds
43f5d2131e
Add test for client hello validation
il y a 5 ans
9seconds
e2073f0585
Remove timeattack module
il y a 5 ans
9seconds
54a7c6a2a5
Small subtle optimizations of faketls
il y a 5 ans
9seconds
24fdec6694
Move testlib to internal
il y a 5 ans
9seconds
38ff62fddc
Add tests for faketls conn
il y a 5 ans
9seconds
26070d5b3e
More correct calculation of dc for obfuscated2 frame
il y a 5 ans
9seconds
03d98ee256
Add relay test for timeout
il y a 5 ans
9seconds
dc28677086
Fix lint
il y a 5 ans
9seconds
54f4b397b6
Add tests for relay conn
il y a 5 ans
9seconds
96bcb6cd8e
Add tests for welcome packet
il y a 5 ans
9seconds
491b674e70
Add tests for client hello
il y a 5 ans
9seconds
64754d1039
Add tests for faketls record
il y a 5 ans
9seconds
23c42def4f
Add test for faketls type and version
il y a 5 ans
9seconds
841a4d2227
Get rid of unrequired buffering for tls records
il y a 5 ans
9seconds
3cacd74e12
Correctly reset relay state
il y a 5 ans
9seconds
4c3f42e264
Simplify relay
il y a 5 ans
9seconds
3992054560
Correctly manage partial writes
il y a 5 ans
9seconds
5eca6ecb05
Validate hostname if it was found in SNI
il y a 5 ans
9seconds
ce30e128e5
fixup address for dc 5
il y a 5 ans
9seconds
9b78f766e8
fix lint issues
il y a 5 ans
9seconds
e2e464d32c
Set random length of the tls packets
il y a 5 ans
9seconds
f0efa4697e
Faketls works now
il y a 5 ans
9seconds
6d92d5fe21
Fix lint issues
il y a 5 ans
9seconds
c3e8e8b1fe
Add base faketls processing
il y a 5 ans
9seconds
a444a10bd0
Rename client hello file
il y a 5 ans
9seconds
d3551aa9cc
Move clienhello to faketls
il y a 5 ans
9seconds
4a2d1df384
Can correctly accept faketls messages
il y a 5 ans
9seconds
a3c64c1d1e
Fix lint issue
il y a 5 ans