flora

package
v0.0.0-...-1f1626a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION     = "0.1.1"
	SOCKS_PORT  = 7657
	RULE_REJECT = 0
	RULE_DIRECT = 1
	RULE_PROXY  = 2
)

Variables

View Source
var ProxyServers struct {
	SrvCipher []*ProxyServerCipher
	FailCnt   []int // failed connection count
}

Functions

func GeoIP

func GeoIP(ip net.IP) string

func GeoIPString

func GeoIPString(ipaddr string) string

func GeoIPs

func GeoIPs(ips []net.IP) string

func ResetAllProxys

func ResetAllProxys()

func SetProxyBypassDomains

func SetProxyBypassDomains(domains []string)

func SetSocksFirewallProxy

func SetSocksFirewallProxy()

Types

type DomainRule

type DomainRule struct {
	S string
	T int
}

func RuleOfHost

func RuleOfHost(host string) (result *DomainRule)

type ProxyServerCipher

type ProxyServerCipher struct {
	Server string
	Cipher *ss.Cipher
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL