Documentation
¶
Index ¶
- Constants
- Variables
- func CONTROLHostAddress() string
- func DialConn(network, addr string) (net.Conn, error)
- func DialI2P(network, addr string, config *ssh.ClientConfig) (*ssh.Client, error)
- func DialI2PConn(net, addr string) (net.Conn, error)
- func DialI2PDatagrams(net, addr string) (net.Conn, error)
- func DialI2PStreaming(net, addr string) (net.Conn, error)
- func DialTor(network, addr string, config *ssh.ClientConfig) (*ssh.Client, error)
- func DialTorStreaming(network, addr string) (net.Conn, error)
- func ListenI2P(network string, config *sshd.Option) (net.Listener, error)
- func ListenI2PDatagrams() (net.Listener, error)
- func ListenI2PStreaming() (net.Listener, error)
- func SAMHostAddress() string
- func SOCKSHostAddress() string
- func Server(config *sshd.Option) (*sshd.Server, error)
Constants ¶
const ( // STREAMING is an I2P Streaming Session STREAMING string = "st" // DATAGRAMS is an I2P Datagram Session DATAGRAMS string = "dg" )
const ( // TORTCP a TOR TCP session TORTCP string = "tor" )
Variables ¶
var CONTROLPort = "9051"
CONTROLPort is the port used for controlling Tor
var Options_SSH = []string{"inbound.length=2", "outbound.length=2", "inbound.lengthVariance=0", "outbound.lengthVariance=0", "inbound.quantity=3", "outbound.quantity=3", "inbound.backupQuantity=2", "outbound.backupQuantity=2", "i2cp.closeOnIdle=false", "i2cp.reduceOnIdle=false", "i2cp.leaseSetEncType=4,0"}
var SAMHost = "127.0.0.1"
SAMHost is the SAM API bridge host
var SAMPort = "7656"
SAMPort is the SAM API bridge port
var SOCKSPort = "9050"
SOCKSPort is the port used for the Tor SOCKS proxy
var TORHost = "127.0.0.1"
TORHost is the host where Tor is running
Functions ¶
func CONTROLHostAddress ¶
func CONTROLHostAddress() string
CONTROLHostAddress gets you the address of the Tor Control Port
func DialI2P ¶
DialI2P returns an ssh.Client configured to connect via I2P. It accepts "st" or "dg" in the "Network" parameter, for "streaming" or "datagram" based connections. It is otherwise identical to ssh.Dial
func DialTor ¶
DialTor returns an ssh.Client configured to connect via Tor. It accepts "st" or "dg" in the "Network" parameter, for "streaming" or "datagram" based connections. It is otherwise identical to ssh.Dial
func ListenI2PDatagrams ¶
func ListenI2PStreaming ¶
func SOCKSHostAddress ¶
func SOCKSHostAddress() string
SOCKSHostAddress gives you the address of the Tor SOCKS port
Types ¶
This section is empty.