some changes

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
Marcos Lilljedahl
2023-10-31 13:28:26 -03:00
parent 580c259b28
commit 2fd85f21b9
12 changed files with 62 additions and 77 deletions

View File

@@ -320,6 +320,7 @@ func (r *proxyRouter) ListenDnsUdpAddress() string {
return ""
}
func (r *proxyRouter) ListenDnsTcpAddress() string {
if r.tcpDnsServer != nil && r.tcpDnsServer.Listener != nil {
return r.tcpDnsServer.Listener.Addr().String()
@@ -459,7 +460,7 @@ func proxyConn(src, dst net.Conn) {
}
func NewRouter(director Director, keyPath string) *proxyRouter {
var sshConfig = &ssh.ServerConfig{
sshConfig := &ssh.ServerConfig{
PublicKeyCallback: func(c ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error) {
return nil, nil
},