Documentation
¶
Overview ¶
Package socketopts configures network socket options before use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnsupportedMark indicates a nonzero firewall mark on an unsupported platform. ErrUnsupportedMark = errors.New("socket firewall mark is unsupported") )
Functions ¶
func NewDialer ¶
NewDialer clones base and applies mark before every outbound and resolver socket connection.
func NewListenConfig ¶ added in v0.2.0
func NewListenConfig(base *net.ListenConfig, mark uint32) (*net.ListenConfig, error)
NewListenConfig clones base and applies mark before every socket bind.
Types ¶
This section is empty.