Selaa lähdekoodia

Fix SSH tunnel gateway binding address issue #4900 (#4902)

- Fix SSH tunnel gateway incorrectly binding to proxyBindAddr instead of bindAddr
- This caused external connections to fail when proxyBindAddr was set to 127.0.0.1
- SSH tunnel gateway now correctly binds to bindAddr for external accessibility
- Update Release.md with bug fix description

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fatedier 3 viikkoa sitten
vanhempi
commit
e6dacf3a67
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 5 1
      Release.md
  2. 1 1
      server/service.go

+ 5 - 1
Release.md

@@ -1,3 +1,7 @@
 ## Features
 ## Features
 
 
-* Support tokenSource for loading authentication tokens from files
+* Support tokenSource for loading authentication tokens from files
+
+## Fixes
+
+* Fix SSH tunnel gateway incorrectly binding to proxyBindAddr instead of bindAddr, which caused external connections to fail when proxyBindAddr was set to 127.0.0.1

+ 1 - 1
server/service.go

@@ -262,7 +262,7 @@ func NewService(cfg *v1.ServerConfig) (*Service, error) {
 	}
 	}
 
 
 	if cfg.SSHTunnelGateway.BindPort > 0 {
 	if cfg.SSHTunnelGateway.BindPort > 0 {
-		sshGateway, err := ssh.NewGateway(cfg.SSHTunnelGateway, cfg.ProxyBindAddr, svr.sshTunnelListener)
+		sshGateway, err := ssh.NewGateway(cfg.SSHTunnelGateway, cfg.BindAddr, svr.sshTunnelListener)
 		if err != nil {
 		if err != nil {
 			return nil, fmt.Errorf("create ssh gateway error: %v", err)
 			return nil, fmt.Errorf("create ssh gateway error: %v", err)
 		}
 		}