Documentation
¶
Index ¶
- Variables
- func GetRequestURLString(req *http.Request) string
- func IPv42Int(ip string) (int64, error)
- func IsPrivateIP(ip string) bool
- func Long2IPv4(i uint64) string
- func PKCS7Pad(data []byte, blocklen int) ([]byte, error)
- func PKCS7Unpad(data []byte, blocklen int) ([]byte, error)
- func PrepareRegexp(rule string, only_star bool) (*regexp.Regexp, error)
- func RandAsciiString(n int) string
- func ReadWithoutComment(file string, commentPrefix string) ([]byte, error)
- func TLSParseSNI(data []byte) (string, error)
- func WildcardMatch(text string, pattern string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSNI = errors.New("No SNI in protocol")
View Source
var ErrTLSClientHello = errors.New("Invalid tls client hello")
View Source
var ErrTLSIncomplete = errors.New("TLS header incomplete")
Functions ¶
func GetRequestURLString ¶
func IsPrivateIP ¶
func PKCS7Unpad ¶
Returns slice of the original data without padding.
func RandAsciiString ¶
func ReadWithoutComment ¶
func TLSParseSNI ¶
func WildcardMatch ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.