Skip to content

Commit f7c91cc

Browse files
committed
Remove unused func
1 parent 460b762 commit f7c91cc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

agent/agent.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -706,19 +706,6 @@ func (a *agent) handleReconnectingPTY(ctx context.Context, rawID string, conn ne
706706
}
707707
}
708708

709-
// addrToSSHEnvAddr turns the address and port into space-separated values,
710-
// works with IPv4, IPv6 and invalid addresses (such as [peer/unknown-addr]).
711-
func addrToSSHEnvAddr(a net.Addr) (addr string, port string) {
712-
addr = a.String()
713-
port = "0"
714-
li := strings.LastIndex(addr, ":")
715-
if li != -1 {
716-
port = addr[li+1:]
717-
addr = addr[:li]
718-
}
719-
return addr, port
720-
}
721-
722709
// dialResponse is written to datachannels with protocol "dial" by the agent as
723710
// the first packet to signify whether the dial succeeded or failed.
724711
type dialResponse struct {

0 commit comments

Comments
 (0)