Documentation ¶
Index ¶
- Variables
- func CheckDomain(host string, port string) (bool, string)
- func CheckIP(name net.Addr) (bool, error)
- func GetIP(url string) (net.IP, error)
- func Load(name string) error
- func Run()
- func UpdateIPv4() error
- func UpdateIPv6() error
- func UpdateRule() error
- type PortRule
- type Rule
- type Stream
- type StreamAPI
- type StreamDNS
- type StreamOut
- type StreamRule
- type StreamTCP
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CurrentIPv4 string CurrentIPv6 string StreamData Stream )
Functions ¶
func UpdateIPv4 ¶
func UpdateIPv4() error
func UpdateIPv6 ¶
func UpdateIPv6() error
func UpdateRule ¶
func UpdateRule() error
Types ¶
type StreamRule ¶
type StreamRule struct { URL string `json:"url"` Mapping []PortRule `json:"mapping"` List []Rule `json:"-"` }
func (*StreamRule) Outbound ¶
func (r *StreamRule) Outbound(name string) string
func (*StreamRule) Update ¶
func (r *StreamRule) Update() error
Click to show internal directories.
Click to hide internal directories.