aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-01-23 11:12:16 +0100
committerAleksandr Nogikh <nogikh@google.com>2024-01-23 11:46:45 +0000
commitbf3b32eb43d4b6b620b3c2b9f2f54aeadc8f17f6 (patch)
tree6f9448268d2f483a22fac65d379f3050f6dff1ee /vm/gce
parent135863f822c9f4b7c4f15126c66b713e8c11b4c2 (diff)
vm/gce: use regional serial port connections
It's now the recommended approach. Co-authored-by: Alex Tyler <alextyler@google.com> Co-authored-by: Aleksandr Nogikh <nogikh@google.com>
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index e8eb35f06..f775f43b5 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -453,8 +453,8 @@ func (inst *instance) serialPortArgs(replay bool) []string {
if replay {
replayArg = ".replay-lines=10000"
}
- conAddr := fmt.Sprintf("%v.%v.%v.%s.port=1%s@ssh-serialport.googleapis.com",
- inst.GCE.ProjectID, inst.GCE.ZoneID, inst.name, user, replayArg)
+ conAddr := fmt.Sprintf("%v.%v.%v.%s.port=1%s@%v-ssh-serialport.googleapis.com",
+ inst.GCE.ProjectID, inst.GCE.ZoneID, inst.name, user, replayArg, inst.GCE.RegionID)
conArgs := append(vmimpl.SSHArgs(inst.debug, key, 9600), conAddr)
// TODO(blackgnezdo): Remove this once ssh-serialport.googleapis.com stops using
// host key algorithm: ssh-rsa.