2019-10-22 17:08:56 +02:00
|
|
|
export enum ProxySource {
|
|
|
|
no = 'no',
|
|
|
|
system = 'system',
|
|
|
|
manual = 'manual'
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum ProxyProtocol {
|
|
|
|
http = 'http',
|
|
|
|
https = 'https',
|
|
|
|
socks4 = 'socks4',
|
|
|
|
socks4a = 'socks4a',
|
|
|
|
socks5 = 'socks5',
|
|
|
|
socks5h = 'socks5h'
|
|
|
|
}
|
|
|
|
|
2019-10-23 15:08:10 +02:00
|
|
|
export type ManualProxy = {
|
|
|
|
protocol: '' | ProxyProtocol
|
|
|
|
host: string
|
|
|
|
port: string
|
|
|
|
username: string
|
|
|
|
password: string
|
|
|
|
}
|
|
|
|
|
2019-10-22 17:08:56 +02:00
|
|
|
export type Proxy = {
|
|
|
|
source: ProxySource
|
2019-10-23 15:08:10 +02:00
|
|
|
manualProxyConfig: ManualProxy
|
2019-10-22 17:08:56 +02:00
|
|
|
}
|