()
| 22 | } |
| 23 | |
| 24 | func (c *bufferedConn) ConnectionState() tls.ConnectionState { |
| 25 | if c == nil || c.Conn == nil { |
| 26 | return tls.ConnectionState{} |
| 27 | } |
| 28 | if stater, ok := c.Conn.(interface{ ConnectionState() tls.ConnectionState }); ok { |
| 29 | return stater.ConnectionState() |
| 30 | } |
| 31 | return tls.ConnectionState{} |
| 32 | } |