diff options
| author | yangwei <[email protected]> | 2021-04-08 18:08:21 +0800 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2021-04-20 11:21:41 +0000 |
| commit | a339d39ee37504b45182200671dfaa1c775ad3e3 (patch) | |
| tree | 256e7d528395f6eea4ad8e10bd5904ea7f74e447 /src/tsg_ssl_utils.cpp | |
| parent | 441b0d15841283a681b3034bc783499e308acf07 (diff) | |
✨feat(tsg_ssl_utils): client hello识别增加是否为esni的结果
Diffstat (limited to 'src/tsg_ssl_utils.cpp')
| -rw-r--r-- | src/tsg_ssl_utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tsg_ssl_utils.cpp b/src/tsg_ssl_utils.cpp index 5aed2a9..5e86cfd 100644 --- a/src/tsg_ssl_utils.cpp +++ b/src/tsg_ssl_utils.cpp @@ -236,6 +236,10 @@ static enum chello_parse_result parse_extensions(const unsigned char* buff, size return result; } } + if (buff[pos] == 0xff && buff[pos + 1] == 0xce)//identify encrypt sni + { + chello->is_encrypt_sni = 1; + } pos += (4 + len); } /* Check we ended where we expected to */ |
