mtproxy

package
v0.56.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 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 {
	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 added in v0.52.0

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