mtproxy

package
v0.111.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 2 Imported by: 8

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