Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7c91cc

Browse files
committed
Remove unused func
1 parent460b762 commitf7c91cc

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-
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-
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
typedialResponsestruct {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp