This commit is contained in:
Wade Simmons
2026-02-12 12:16:16 -05:00
parent f573e8a266
commit 2190c04201
15 changed files with 14 additions and 39 deletions

5
ssh.go
View File

@@ -6,6 +6,7 @@ import (
"errors"
"flag"
"fmt"
"maps"
"net"
"net/netip"
"os"
@@ -831,9 +832,7 @@ func sshPrintRelays(ifce *Interface, fs any, a []string, w sshd.StringWriter) er
relays := map[uint32]*HostInfo{}
ifce.hostMap.Lock()
for k, v := range ifce.hostMap.Relays {
relays[k] = v
}
maps.Copy(relays, ifce.hostMap.Relays)
ifce.hostMap.Unlock()
type RelayFor struct {