preconfigs

package
v0.0.0-...-10a0d72 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SPEED_DEFAULT_DURATION  int64 = 3
	SPEED_DEFAULT_THREADING uint  = 1

	SPEED_DEFAULT_LARGE_FILE_STATIC_APPLE    string = "https://secure-appldnld.apple.com/itunes12/041-56365-20210413-79A5AC6D-6B0A-46EC-B399-5A381183E3BE/iTunes12.8.3.dmg"
	SPEED_DEFAULT_LARGE_FILE_STATIC_MSFT     string = "https://download.microsoft.com/download/9/B/1/9B1EAE94-B328-451E-AF9D-89BD73CDA9E0/WPSDK-7.1.1-KB2669187-x86.exe"
	SPEED_DEFAULT_LARGE_FILE_STATIC_GOOGLE   string = "https://dl.google.com/developers/android/sc/images/factory/bramble-s3b1.220218.004-factory-a2a7cafb.zip"
	SPEED_DEFAULT_LARGE_FILE_STATIC_CACHEFLY string = "http://cachefly.cachefly.net/200mb.test"

	SPEED_DEFAULT_LARGE_FILE_DYN_INTL     string = "DYNAMIC:INTL"
	SPEED_DEFAULT_LARGE_FILE_DYN_FAST     string = "DYNAMIC:FAST"
	SPEED_DEFAULT_LARGE_FILE_DYN_ALL_INTL string = "DYNAMIC:ALL"

	SPEED_DEFAULT_LARGE_FILE_DEFAULT = SPEED_DEFAULT_LARGE_FILE_DYN_INTL

	SLAVE_DEFAULT_PING         = "https://www.gstatic.com/generate_204"
	SLAVE_DEFAULT_RETRY   uint = 3
	SLAVE_DEFAULT_TIMEOUT uint = 5000
)
View Source
const NETCAT_HTTP_PAYLOAD = `GET %s HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Host: %s
User-Agent: HTTPie/3.0.2 MiaoSpeed/%s

`
View Source
const PROXY_DEFAULT_STUN_SERVER = "udp://stun.msl.la:3478"

Variables

View Source
var MIAOKO_ROOT_CA []byte
View Source
var MIAOKO_TLS_CRT string
View Source
var MIAOKO_TLS_KEY string
View Source
var SPEED_DEFAULT_LARGE_FILE_DYNAMIC string

Functions

func MakeSelfSignedTLSServer

func MakeSelfSignedTLSServer() *tls.Config

func MiaokoRootCAPrepare

func MiaokoRootCAPrepare() *x509.CertPool

Types

This section is empty.

Jump to

Keyboard shortcuts

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