Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_AUTO_START = false
View Source
const DEFAULT_DIRECT_DOMAIN_LIST = "geosite:cn"
View Source
const DEFAULT_DIRECT_IP_LIST = "geoip:private,geoip:cn"
View Source
const DEFAULT_ENV_FILE = "default.env"
View Source
const DEFAULT_GRPC_PORT = 50051
View Source
const DEFAULT_HTTP_PROXY = "http://127.0.0.1:30000"
View Source
const DEFAULT_PROXY_DOMAIN_LIST = "geosite:google"
View Source
const DEFAULT_PROXY_IP_LIST = "geoip:!cn"
View Source
const DEFAULT_RUNTIME_DIR = "runtime"
View Source
const DEFAULT_SUBSCRIBE_DATA_FILE = "subscribe_data.txt"
View Source
const DEFAULT_TEST_URL = "https://www.google.com"
View Source
const DEFAULT_V2RAY_API_PORT = 15492
View Source
const DEFAULT_V2RAY_PATH = "bin/v2ray.exe"
View Source
const DEFAULT_WEB_SERVER_PORT = 8087
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶
type Conf struct {
TestUrl string
EnvFile string
RuntimeDir string
AutoStart bool
GrpcPort, V2rayApiPort, WebServerPort int
V2rayPath string
SubscribeUrl string
SubscribeDataFile string
HttpProxy string
DirectDomainList, DirectIpList, ProxyDomainList, ProxyIpList []string
}
func (Conf) GetHttpProxyPort ¶
func (Conf) GetHttpProxyProtocol ¶ added in v1.4.0
GetHttpProxyProtocol. get SystemProxy Inbound Protocol By HttpProxy. Only Support http and socks curl --proxy socks5://127.0.0.1:30000 https://httpbin.org/get -v curl --proxy http://127.0.0.1:30000 https://httpbin.org/get -v
func (Conf) GetSubscribeData ¶
func (Conf) HttpProxySplit ¶ added in v1.4.0
func (Conf) UpdateSubscribeData ¶
Click to show internal directories.
Click to hide internal directories.