MCPcopy Index your code
hub / github.com/smallstep/cli / formatAddress

Function formatAddress

internal/sshutil/shell.go:94–99  ·  view source on GitHub ↗
(address string)

Source from the content-addressed store, hash-verified

92}
93
94func formatAddress(address string) string {
95 if _, _, err := net.SplitHostPort(address); err != nil {
96 address += ":22"
97 }
98 return address
99}
100
101// Shell implements a remote shell to an SSH server using x/crypto/ssh
102type Shell struct {

Callers 1

NewShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…