Skip to content

Commit 6b83fdb

Browse files
authored
fix: Use port number when sshing to external nodes (#396)
fix: use port number when sshing to external nodes
1 parent 7998e61 commit 6b83fdb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DEFAULT_GOAL := fast-build
22
VERSION := dev-$(shell git rev-parse HEAD | cut -c 1-8)
33

4-
# Cross-compilation via Docker (golang:1.24 native Linux container).
4+
# Cross-compilation via Docker (golang:1.25 native Linux container).
55
# When arch=<GOOS>/<GOARCH> is provided, spin up a container that matches
66
# the target platform so CGO uses the native Linux gcc/GNU ld toolchain
77
_GOMODCACHE := $(shell go env GOMODCACHE)
@@ -16,7 +16,7 @@ ifdef arch
1616
-e GOPRIVATE=github.com/brevdev/* \
1717
-e GONOSUMDB=github.com/brevdev/* \
1818
-w /app \
19-
golang:1.24
19+
golang:1.25
2020
else
2121
_BUILD_PREFIX := CGO_ENABLED=1
2222
endif

pkg/cmd/util/externalnode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func ResolveNodeSSHEntry(userID string, node *nodev1.ExternalNode) *ssh.External
101101
return &ssh.ExternalNodeSSHEntry{
102102
Alias: ssh.SanitizeNodeName(node.GetName()),
103103
Hostname: sshPort.GetHostname(),
104-
Port: sshPort.GetServerPort(),
104+
Port: sshPort.GetPortNumber(),
105105
User: linuxUser,
106106
}
107107
}

0 commit comments

Comments
 (0)