[GH-ISSUE #53] 无效代码 #28

Closed
opened 2026-02-27 23:15:07 +03:00 by kerem · 1 comment
Owner

Originally created by @ethanvc on GitHub (Apr 9, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/53

serverName, err0 := sni.ServerNameFromBytes(req.HeadBuf)
hi,上面的代码用于判断servername,但是这里拿到的数据已经是被tls解密过了,所以这个代码应该是多余的了。是这样吗?

Originally created by @ethanvc on GitHub (Apr 9, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/53 serverName, err0 := sni.ServerNameFromBytes(req.HeadBuf) hi,上面的代码用于判断servername,但是这里拿到的数据已经是被tls解密过了,所以这个代码应该是多余的了。是这样吗?
kerem closed this issue 2026-02-27 23:15:07 +03:00
Author
Owner

@snail007 commented on GitHub (Apr 9, 2018):

你理解错误,这里拿到的数据是用户发来的原始tcp数据。

<!-- gh-comment-id:379796046 --> @snail007 commented on GitHub (Apr 9, 2018): 你理解错误,这里拿到的数据是用户发来的原始tcp数据。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#28
No description provided.