Categorygithub.com/togls/trojan-go
modulepackage
0.1.0
Repository: https://github.com/togls/trojan-go.git
Documentation: pkg.go.dev

# README

trojan-go

implement trojan protocol in golang

  • run type
    • server
    • client
    • forward
  • relay
    • tcp
    • udp
  • autocert
    • ZeroSSL with cf DNS
  • other
    • website

docker compose

version: '3'
services:
  trojan:
    image: ghcr.io/togls/trojan-go:master
    ports:
      - 443:443
    volumes:
      - certs:/root/.local/share
      - /path/to/site:/var/www/site
      - /path/to/config.json:/etc/trojan-go/config.json
volumes:
  certs:

# Packages

No description provided by the author
Package log provides a global logger for zerolog.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
ParseAddr parses the address in string s.
No description provided by the author
ReadAddr reads just enough bytes from r to get a valid Addr.
SplitAddr slices a SOCKS address from beginning of b.
No description provided by the author

# Constants

SOCKS address types as defined in RFC 1928 section 5.
SOCKS address types as defined in RFC 1928 section 5.
SOCKS address types as defined in RFC 1928 section 5.
SOCKS request commands as defined in RFC 1928 section 4.
SOCKS request commands as defined in RFC 1928 section 4.
SOCKS request commands as defined in RFC 1928 section 4.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
SOCKS errors as defined in RFC 1928 section 6.
MaxAddrLen is the maximum size of SOCKS address in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

Addr represents a SOCKS address as defined in RFC 1928 section 5.
No description provided by the author
Error represents a SOCKS error.
No description provided by the author