go-socks5-ssh-proxy/config.go

35 lines
922 B
Go

package main
import "io"
type config struct {
// Verbose mode key
//
// In release builds the verbose mode is silenced when this key is given
// verbose mode is force enabled. The key is read from the "VMK" environment
// variable at startup.
//
// When not set during build, in release mode the SHA256-hex fingerprint is
// derived from the PEM SSH private key.
VerboseModeKey string
// SSH server user name
SSHServerUserName string
// SSH server host and port connect to
SSHServerURL string
// Path to private key pem in debug builds
SSHPrivateKeyFile string
// SOCKS5 listen port (when set to 0 dynamic bind)
SOCKS5ListenPort int
// Enable if host has SSHFP in DNS. When disabled insecure host key check is performed.
SSHVerifyValidSSHFP bool
// DNS client resolv.conf for fetching SSHFP records from.
// Config is used when SSHVerifyValidSSHFP = true
DNSServersResolvConf io.Reader
}