mtproxy

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mtproxy contains MTProxy transport implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	DC        int
	Secret    []byte
	CloakHost string
	Type      SecretType
}

Secret represents MTProxy secret.

func ParseSecret

func ParseSecret(dc int, secret []byte) (Secret, error)

ParseSecret checks and parses secret.

type SecretType

type SecretType int

SecretType represents MTProxy secret type.

const (
	// Simple is a basic MTProxy secret.
	Simple SecretType = iota + 1
	// Secured is dd-secret.
	Secured
	// TLS is fakeTLS MTProxy secret.
	// First byte should be ee.
	TLS
)

Directories

Path Synopsis
Package faketls contains faketls implementation.
Package faketls contains faketls implementation.
tlstypes
Package tlstypes is copy of tlstypes package in mtg.
Package tlstypes is copy of tlstypes package in mtg.
Package obfuscated2 contains obfuscated2 implementation.
Package obfuscated2 contains obfuscated2 implementation.
Package obfuscator contains some MTProxy obfuscation utilities.
Package obfuscator contains some MTProxy obfuscation utilities.

Jump to

Keyboard shortcuts

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