We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent460b762 commitf7c91ccCopy full SHA for f7c91cc
agent/agent.go
@@ -706,19 +706,6 @@ func (a *agent) handleReconnectingPTY(ctx context.Context, rawID string, conn ne
706
}
707
708
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
-funcaddrToSSHEnvAddr(a net.Addr) (addrstring,portstring) {
712
-addr=a.String()
713
-port="0"
714
-li:=strings.LastIndex(addr,":")
715
-ifli!=-1 {
716
-port=addr[li+1:]
717
-addr=addr[:li]
718
-}
719
-returnaddr,port
720
721
-
722
// dialResponse is written to datachannels with protocol "dial" by the agent as
723
// the first packet to signify whether the dial succeeded or failed.
724
typedialResponsestruct {