mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-13 12:46:36 +08:00
随机构造自签证书信息,修复屏蔽协议引发的udp问题
This commit is contained in:
@@ -459,9 +459,14 @@ func (c *detectConn) Read(b []byte) (int, error) {
|
||||
}
|
||||
|
||||
func detectProtocol(data []byte, conn net.Conn) (blocked bool) {
|
||||
// 如果是 UDP,则不检测,直接放行
|
||||
if _, ok := conn.(*net.UDPConn); ok {
|
||||
return false
|
||||
}
|
||||
|
||||
if isHttp == 1 && detectHTTP(data) {
|
||||
conn.Close()
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
if isTls == 1 && detectTLS(data) {
|
||||
|
||||
Reference in New Issue
Block a user