mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
-B: the TLS ClientHello split at the SNI, which -s is taken for splice
tlspr splits the ClientHello it passes in the middle of the server name (SNI) when the service has s_option, set by -s. In builds with splice() (Linux, the default there) -s is splice for every service but UDP ones, admin and httpsrv, so the split was never made, and the How-To's SNI break did nothing on Linux. -B sets it whatever the build: for TCP services but admin and httpsrv, where s_option has a meaning of its own. -s still does it where it is not splice. The How-To, 3proxy.cfg(5) and tlspr(8) give -B. Fixes #1283 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23b9619da1
commit
9f27d2cbfb
5 files changed
+23
-8
No files matched your search
@@ -221,6 +221,7 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
|
||||
" association: 1 - log, 2 - authorize, 3 - both (default), 0 (same as -U) -\n"
|
||||
" neither. The first destination is always authorized and logged\n"
|
||||
#endif
|
||||
" -B split the TLS ClientHello passed through tlspr at the SNI (DPI bypass)\n"
|
||||
"-g(GRACE_TRAFF,GRACE_NUM,GRACE_DELAY) - delay GRACE_DELAY milliseconds before polling if average polling size below GRACE_TRAFF bytes and GRACE_NUM read operations in single directions are detected within 1 second to minimize polling\n"
|
||||
" -fFORMAT logging format (see documentation)\n"
|
||||
" -l log to stdout\n"
|
||||
@@ -493,6 +494,13 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
|
||||
case 'U':
|
||||
srv->udpauth = *(argv[i]+2)? atoi(argv[i]+2) : 0;
|
||||
break;
|
||||
case 'B':
|
||||
/* the TLS ClientHello split at the SNI (tlspr), which -s is
|
||||
where -s is not splice; s_option means something else
|
||||
for these */
|
||||
if(!s->isudp && srv->service != S_ADMIN && srv->service != S_HTTPSRV)
|
||||
srv->s_option = 1 + atoi(argv[i]+2);
|
||||
break;
|
||||
case 's':
|
||||
#ifdef WITHSPLICE
|
||||
/* admin is an httpsrv, where -s is the limited mode */
|
||||
|
||||
Reference in new issue
Block a user