mtproxy

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	Secret    []byte
	Tag       byte
	CloakHost string
	Type      SecretType
}

Secret represents MTProxy secret.

func ParseSecret

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

ParseSecret checks and parses secret.

func (Secret) ExpectedCodec

func (s Secret) ExpectedCodec() (cdc codec.Codec, _ bool)

ExpectedCodec returns codec from secret tag if it exists.

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.
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