ssh

package
v0.0.0-...-a353eeb Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User     string   `yaml:"user"`
	Password string   `yaml:"password"`
	Host     string   `yaml:"host"`
	Domain   string   `yaml:"domain"`
	IPs      []string `yaml:"ips"`
	DNS      []string `yaml:"dns"`
}

type Protocol

type Protocol struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Protocol, error)

func (*Protocol) FixedIPs

func (p *Protocol) FixedIPs() []string

func (*Protocol) HandleTCP

func (p *Protocol) HandleTCP(conn net.Conn)

func (*Protocol) LookupHost

func (p *Protocol) LookupHost(_ context.Context, req *dns.Msg) *dns.Msg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL