Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yosebyte authored Dec 9, 2024
1 parent d8f29ad commit 83a8a5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/passport/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
if err != nil {
log.Fatal("Error parsing raw URL: %v", err)
}
tlsConfig, err := tls.NewTLSconfig("")
tlsConfig, err := tls.NewTLSconfig("yosebyte/passport " + version)
if err != nil {
log.Error("Error generating TLS config: %v", err)
}
Expand Down
2 changes: 0 additions & 2 deletions internal/tunnel/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,12 @@ func ClientTCP(linkAddr, targetTCPAddr *net.TCPAddr) {
log.Error("Unable to dial target address: [%v], %v", targetTCPAddr, err)
return
}
defer targetConn.Close()
log.Info("Target connection established: [%v]", targetTCPAddr)
remoteConn, err := tls.Dial("tcp", linkAddr.String(), &tls.Config{InsecureSkipVerify: true})
if err != nil {
log.Error("Unable to dial target address: [%v], %v", linkAddr, err)
return
}
defer remoteConn.Close()
log.Info("Starting data exchange: [%v] <-> [%v]", linkAddr, targetTCPAddr)
conn.DataExchange(remoteConn, targetConn)
log.Info("Connection closed successfully")
Expand Down

0 comments on commit 83a8a5b

Please sign in to comment.