config

package
v0.0.0-...-5994642 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AppVersion = "0.0.1"
View Source
const ConcurrentDOHRequests = 5
View Source
const ConcurrentProcessRequests = 30
View Source
const FbConfigFile string = "fb.config"
View Source
const MaxNodeTimeRecords = 100
View Source
const MethodDelay = 3 * time.Second
View Source
const NodePowerCoeff float64 = 4.0
View Source
const ProxyPort = "8888"
View Source
const SwitchNodeChance float64 = 0.05
View Source
const TimeoutHTTPClient time.Duration = 30 * time.Second
View Source
const TimeoutIdleConn time.Duration = 60 * time.Second
View Source
const TimeoutNetDialer time.Duration = 10 * time.Second
View Source
const TimeoutResponseHeader time.Duration = 10 * time.Second
View Source
const TimeoutTLSHandshake time.Duration = 10 * time.Second
View Source
const UnreachableDOHServerChance float64 = 0.05
View Source
const UntestedNodeChance float64 = 0.25
View Source
const UseExistingMethodDataChance = 0.9

Variables

View Source
var BlockedDomains = []string{}
View Source
var CA_CERT, _ = EmbeddedFiles.ReadFile("proxy.pem")
View Source
var CA_KEY, _ = EmbeddedFiles.ReadFile("proxy.key")
View Source
var DohURLlist = []string{
	"doh://1.1.1.1",
	"https://1.1.1.1/dns-query?name=%s",
	"dohocdn://one.one.one.one",
}
View Source
var DomainFrontingHashSuffix = "md5suffix"
View Source
var DomainFrontingOnlyDomains = []string{}
View Source
var DomainFrontingOriginalURLHeader = "X-Original-URL"
View Source
var DomainFrontingPathPrefix = "/df/"
View Source
var EmbeddedFiles embed.FS
View Source
var FbConfigFilePathAndroid string = "/data/data/com.example.gfapp/files/fb.config"
View Source
var LimitNodeErrors = 50
View Source
var MethodDataFilePathAndroid string = "/data/data/com.example.gfapp/files/method_data.json"
View Source
var SystemUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
View Source
var ValidSNIs = map[string]bool{
	"www.example.com": true,
}

Functions

func UpdateDomainFrontingOnlyDomains

func UpdateDomainFrontingOnlyDomains(dohDomain string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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