Documentation
¶
Index ¶
- func CopyFile(dstName, srcName string) (err error)
- func FirstUpper(s string) string
- func InArray(arr []string, str string) bool
- func InArrayGeneric(arr []string, str string) bool
- func IpMask2CIDR(ip, mask string) string
- func IpMaskToCIDR(ipMask string) string
- func MakeMasterSecret() ([]byte, error)
- func Max(init int, other ...int) int
- func Min(init int, other ...int) int
- func RemoveBetween(input, start, end string) string
- func ResolvePacket(packet []byte) (string, uint16, string, uint16)
- func SetCommonHeader(req *http.Request)
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstUpper ¶
func InArrayGeneric ¶
func IpMask2CIDR ¶
func IpMaskToCIDR ¶
IpMaskToCIDR converts 192.168.1.10/255.255.255.255 to 192.168.1.10/32.
func MakeMasterSecret ¶
func RemoveBetween ¶
func SetCommonHeader ¶
SetCommonHeader sets the HTTP headers shared by auth and tunnel setup. ocserv worker-http.c case HEADER_USER_AGENT compares only the first n characters via strncasecmp().
Types ¶
Click to show internal directories.
Click to hide internal directories.