Commit cc93e53
Fix Fake-TLS (EE mode) not working with -D option
This fix reverts the problematic changes from PR #24 and PR #25 that broke
Fake-TLS connections:
1. Revert TLS ClientHello detection to original pattern: The change in PR #25
incorrectly checked the length byte instead of TLS version, which could
cause detection failures.
2. Remove the tag validation check that was incorrectly rejecting EE/EF modes:
- For Fake-TLS connections (C_IS_TLS set), any valid tag should be accepted
- For non-TLS connections with allow_only_tls=1, connection is rejected earlier
- This check was unnecessary and was causing EE mode to fail
Fixes #23
Co-authored-by: dvershinin <[email protected]>1 parent 3abec66 commit cc93e53
1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
1047 | | - | |
1048 | 1046 | | |
1049 | 1047 | | |
1050 | 1048 | | |
| |||
1112 | 1110 | | |
1113 | 1111 | | |
1114 | 1112 | | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
| 1113 | + | |
1118 | 1114 | | |
1119 | 1115 | | |
1120 | 1116 | | |
| |||
1319 | 1315 | | |
1320 | 1316 | | |
1321 | 1317 | | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | 1318 | | |
1327 | 1319 | | |
1328 | 1320 | | |
| |||
0 commit comments