Documentation ¶
Index ¶
- func NewFakePacketConn(r io.Reader) net.PacketConn
- func SniffHTTP(conn net.Conn, timeout time.Duration) string
- func SniffQUIC(conn net.PacketConn, timeout time.Duration) string
- func SniffTLS(conn net.Conn, timeout time.Duration) string
- func ToLowerASCII(s string) string
- func VerifyHostnameInSNI(s string) bool
- type ReadOnlyConn
- func (b ReadOnlyConn) Close() error
- func (b ReadOnlyConn) LocalAddr() net.Addr
- func (b ReadOnlyConn) Read(p []byte) (n int, err error)
- func (b ReadOnlyConn) RemoteAddr() net.Addr
- func (b ReadOnlyConn) SetDeadline(t time.Time) error
- func (b ReadOnlyConn) SetReadDeadline(t time.Time) error
- func (b ReadOnlyConn) SetWriteDeadline(t time.Time) error
- func (b ReadOnlyConn) UnreadConn() net.Conn
- func (b ReadOnlyConn) Write(_ []byte) (n int, err error)
- type ReadOnlyPacketConn
- func (ReadOnlyPacketConn) Close() error
- func (b ReadOnlyPacketConn) LocalAddr() net.Addr
- func (b ReadOnlyPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (b ReadOnlyPacketConn) SetDeadline(t time.Time) error
- func (b ReadOnlyPacketConn) SetReadBuffer(_ int) error
- func (b ReadOnlyPacketConn) SetReadDeadline(t time.Time) error
- func (b ReadOnlyPacketConn) SetWriteBuffer(_ int) error
- func (b ReadOnlyPacketConn) SetWriteDeadline(t time.Time) error
- func (b ReadOnlyPacketConn) UnreadPacketConn() net.PacketConn
- func (b ReadOnlyPacketConn) WriteTo(p []byte, _ net.Addr) (n int, err error)
- type SniffingType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakePacketConn ¶
func NewFakePacketConn(r io.Reader) net.PacketConn
func ToLowerASCII ¶
func VerifyHostnameInSNI ¶
VerifyHostnameInSNI reports whether s is a valid hostname.
Literal IP addresses and absolute FQDNs are not permitted as SNI values. See RFC 6066, Section 3.
Types ¶
type ReadOnlyConn ¶
type ReadOnlyConn struct {
// contains filtered or unexported fields
}
func StreamReadOnlyConn ¶
func StreamReadOnlyConn(conn net.Conn) *ReadOnlyConn
func (ReadOnlyConn) RemoteAddr ¶
func (ReadOnlyConn) SetDeadline ¶
func (ReadOnlyConn) SetReadDeadline ¶
func (ReadOnlyConn) SetWriteDeadline ¶
func (ReadOnlyConn) UnreadConn ¶
type ReadOnlyPacketConn ¶
type ReadOnlyPacketConn struct {
// contains filtered or unexported fields
}
func StreamReadOnlyPacketConn ¶
func StreamReadOnlyPacketConn(conn net.PacketConn) *ReadOnlyPacketConn
func (ReadOnlyPacketConn) SetDeadline ¶
func (ReadOnlyPacketConn) SetReadBuffer ¶
func (ReadOnlyPacketConn) SetReadDeadline ¶
func (ReadOnlyPacketConn) SetWriteBuffer ¶
func (ReadOnlyPacketConn) SetWriteDeadline ¶
func (ReadOnlyPacketConn) UnreadPacketConn ¶
func (b ReadOnlyPacketConn) UnreadPacketConn() net.PacketConn
type SniffingType ¶
type SniffingType int
const ( OFF SniffingType = iota HTTP TLS QUIC )
func (SniffingType) String ¶
func (s SniffingType) String() string
Click to show internal directories.
Click to hide internal directories.