mirror of
https://github.com/xor-gate/go-socks5-ssh-proxy
synced 2026-03-23 06:16:35 +01:00
Initial working version
This commit is contained in:
24
config.go
Normal file
24
config.go
Normal file
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import "io"
|
||||
|
||||
type config struct {
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user