Skip to content

Commit 3304daa

Browse files
committed
added type SSHTunnelConfig
1 parent 999d470 commit 3304daa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tunnel.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import (
1010
"golang.org/x/crypto/ssh"
1111
)
1212

13+
type SSHTunnelConfig struct {
14+
SSHAddress string
15+
SSHUser string
16+
SSHPrivateKeyPath string
17+
LocalEndpoint string
18+
RemoteEndpoint string
19+
}
20+
1321
func SetupSSHTunnel(config SSHTunnelConfig) (net.Listener, error) {
1422
key, err := os.ReadFile(config.SSHPrivateKeyPath)
1523
if err != nil {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy