preconfigs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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 = "" /* 139-byte string literal not displayed */
	SPEED_DEFAULT_LARGE_FILE_STATIC_MSFT     string = "https://download.microsoft.com/download/2/0/E/20E90413-712F-438C-988E-FDAA79A8AC3D/dotnetfx35.exe"
	SPEED_DEFAULT_LARGE_FILE_STATIC_GOOGLE   string = "https://dl.google.com/android/studio/maven-google-com/stable/offline-gmaven-stable.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_DEFAULT = SPEED_DEFAULT_LARGE_FILE_DYN_INTL

	SLAVE_DEFAULT_PING         = "http://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.voipstunt.com:3478"

Variables

View Source
var MIAOKO_ROOT_CA []byte
View Source
var MIAOKO_TLS_CRT string
View Source
var MIAOKO_TLS_KEY 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