Andy Wang
8af137637e
Add backwards compatibility fallback to firefox
2025-06-08 18:19:58 +01:00
Andy Wang
d5da5d049c
Update copyright
2024-04-13 23:10:09 +01:00
Andy Wang
392fc41de8
Move random utilities to common package
2024-04-13 23:08:34 +01:00
notsure2
3b449b64b3
Support ServerName randomization (by setting ServerName=random) using the same algorithm as ProtonVPN bcf344b39b
2024-04-13 22:48:55 +01:00
Andy Wang
c48a8800d6
Remove old utls
2024-02-09 17:30:22 +00:00
Andy Wang
6417e3393d
Use utls for ClientHello fingerprint
...
Close #223
2024-02-09 16:37:57 +00:00
Andy Wang
59919e5ec0
Remove gopacket dependency due to pcap
2023-04-23 15:14:14 +02:00
Andy Wang
d04366ec32
Fix padding calculation
2023-04-23 15:09:35 +02:00
Andy Wang
bc67074610
Add Safari browser signature
2023-04-23 11:04:02 +02:00
Andy Wang
641f6b2a9c
Update to Chrome and Firefox 112
2023-04-23 11:04:02 +02:00
name
11e42dd542
Add WebSocket path for CDN mode
...
add new option to README
Change field name and default value of CDNWsUrlPath
2023-03-07 17:13:13 +08:00
name
e696b18187
format using goimports
2023-03-07 17:09:18 +08:00
HirbodBehnam
9614fbc03d
Update firefox fingerprint
2022-03-24 14:14:50 +04:30
HirbodBehnam
f67ae6e644
Update chrome fingerprint
2022-03-23 21:52:17 +04:30
Andy Wang
750340126a
Update browser fingerprint versions (no actual fingerprint change)
2022-02-02 22:00:32 +00:00
Andy Wang
611bad91fd
Minor refactors to remove unnecessary function
2022-02-02 22:00:26 +00:00
Andy Wang
121c27fe1f
Merge pull request #168 from notsure2/fix-empty-alternative-names
...
Fix incorrect addition of empty name in MockDomainList if the config string contains AlternativeNames=;
2021-07-24 16:38:49 +01:00
notsure2
9d5c663618
Fix incorrect addition of empty name in MockDomainList if the config string contains AlternativeNames=;
2021-07-22 20:05:30 +02:00
notsure2
387b76d426
Support CloudFlare CDN. Fixes #155
2021-07-22 14:52:56 +02:00
Andy Wang
cfdff93a1c
Update Chrome version comment (actual signature remains the same)
2021-04-30 16:00:52 +01:00
Andy Wang
8709bc0b2f
Update Firefox signature to version 88
2021-04-30 15:56:08 +01:00
Selim
ae14e28999
ServerName rotation ( #158 )
...
* inital servername rotation
* Move MockDomainList to LocalConnConfig as the list doesn't need to be sent to the remote
* Use CSPRNG to pick the next candidate of MockDomains
Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
2021-03-25 20:06:16 +00:00
Andy Wang
4a2eac51fe
Cleanup some tests using testify/assert
2020-12-29 01:24:32 +00:00
Andy Wang
5cb54aa3c9
Correctly fallthrough to fix client configuration compatibility
2020-12-28 09:15:40 +00:00
Andy Wang
d1b05ee9e5
Add new encryption method option aes-128-gcm
2020-12-27 13:26:45 +00:00
不确定
dc030fbb47
Implement UDP stream timeout. ( #148 )
...
* Implement UDP stream timeout.
* Correctly delete streams from map after closing
Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
2020-12-23 00:43:38 +00:00
Andy Wang
de0daac123
Update deprecated curve25519 functions and defend against low-order point attacks
2020-12-21 16:37:33 +00:00
不确定
cfbf0dfcb6
Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode. ( #145 )
...
* Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode.
- In case of TCP, don't open the session in the listener accept thread. This
causes resource exhaustion of the tcp listener backlog queue in case of internet
connection disruption or timeout.
- In case of UDP, don't create a new session for every UDP packet.
* Fix race in integration test.
* Fix race condition in session maker
* Code style improvements
* Explicit session.Close() call is indeed needed
Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
2020-12-19 14:42:10 +00:00
不确定
a72273096a
Add CdnHttpHost config setting with documentation. ( #143 )
...
* Add CdnHttpHost config setting with documentation.
* Rename CdnHttpHost to CDNOriginHost and make README more concise
Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
2020-12-12 20:40:48 +00:00
不确定
e77fd4c446
Fix regression: termination of long downloads after StreamTimeout seconds ( #141 )
...
* Fix termination of long downloads after StreamTimeout seconds.
- Even if not broadcasting in a loop, we still need to update the read deadline.
- Don't enforce the timeout after the first data is written.
* When timeout no longer needs to be enforced, no need to schedule a broadcast.
* Fix Cloak client. Don't enforce read deadline after first read.
* Enforce StreamTimeout on the initial bytes sent by localConn only.
* Revert changes to multiplex module. Remove timeout from caller.
2020-12-12 17:00:46 +00:00
不确定
b7e7bfb314
Make sure times are UTC and correctly subtract the timestamp window from the server time. ( #134 )
2020-11-24 18:58:02 +00:00
Andy Wang
0f6e0d37b5
Rename constants to camel case
2020-10-21 16:42:24 +01:00
Andy Wang
c7c3f7706d
Refactor for clarity and add comments
2020-10-18 14:42:47 +01:00
Andy Wang
c749b107e2
Improve test coverage for client's ParseConfig
2020-10-17 18:52:00 +01:00
Andy Wang
a59d9cb880
Fix singleplex and add tests
2020-10-17 16:15:55 +01:00
Andy Wang
86e2935607
Use a pre-made buffer for TLSConn.Write
2020-10-17 13:46:22 +01:00
Andy Wang
3f3259d4d3
MakeSession no longer needs to know if the Session should be admin
2020-10-15 23:02:51 +01:00
Andy Wang
f96925982f
Rename SplitConfigs to ProcessRawConfig to better reflect its behaviour
2020-10-15 22:51:59 +01:00
Andy Wang
9887649b88
Refactor Singleplexing
2020-10-15 21:32:38 +01:00
Andy Wang
c3ea7f7263
Fix test GREASE comparison
2020-09-13 11:32:07 +01:00
Andy Wang
8d2605cafa
Fix test
2020-09-12 21:40:49 +01:00
Andy Wang
05482e64d2
Update Chrome signature to 85. Address #129
2020-09-12 21:18:31 +01:00
Andy Wang
cfbdd9a608
Prevent nil pointer panic when server response is incorrect under CDN mode
2020-09-07 14:48:07 +01:00
Andy Wang
6bd2e8fe1e
Mitigation for https://github.com/cbeuw/Cloak-android/issues/13
2020-07-27 16:33:11 +01:00
notsure2
dab137dbd7
Support session per connection mode (like GoQuiet) when NumConn = 0.
2020-07-06 23:18:52 +02:00
Andy Wang
128f653ea4
Fix duplicate UDP binding
2020-05-27 13:41:34 +01:00
Andy Wang
369f3c781c
Fix UDP
2020-05-23 15:44:24 +01:00
Andy Wang
e202d8d03b
Implement WriteTo and ReadFrom timeouts
2020-04-14 14:14:51 +01:00
Andy Wang
4a81683e44
Code cleanup and move stuff around
2020-04-14 14:14:51 +01:00
Andy Wang
5d4e8b8d8d
Refactor udp piping and add tests
2020-04-11 22:37:15 +01:00