-
Notifications
You must be signed in to change notification settings - Fork 37
/
manual.go
34 lines (27 loc) · 922 Bytes
/
manual.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package networkproxy1
// ScopeProxies type
type ScopeProxies struct {
Proxies map[string][]Proxy `yaml:"proxies"` // map[http,sock4,sock5][]proxy
// proxy setting
ProxyProgram []string `yaml:"proxy-program"` // global proxy will ignore
NoProxyProgram []string `yaml:"no-proxy-program"` // app proxy will ignore
// white list
WhiteList []string `yaml:"whitelist"` // white site dont use proxy, not use this time
TPort int `yaml:"t-port"`
}
// Proxy type
type Proxy struct {
// proxy proto type
ProtoType string `json:"type"` // http sock4 sock5
// [proto]&[name] as ident
Name string `yaml:"name"`
// proxy server
Server string `yaml:"server"`
Port int `yaml:"port"`
// auth message
UserName string `yaml:"username"`
Password string `yaml:"password"`
}