refactor(forwarder): remove CreateForwardedTCPIPPayload method

- OpenForwardedChannel now privately calls CreateForwardedTCPIPPayload
- Removed an unused function
This commit is contained in:
2026-01-25 20:49:12 +07:00
parent 79fd292a77
commit 65df01fee5
6 changed files with 20 additions and 54 deletions
-4
View File
@@ -29,10 +29,6 @@ func (m *MockForwarder) CreateForwardedTCPIPPayload(origin net.Addr) []byte {
return args.Get(0).([]byte)
}
func (m *MockForwarder) WriteBadGatewayResponse(dst io.Writer) {
m.Called(dst)
}
func (m *MockForwarder) HandleConnection(dst io.ReadWriter, src ssh.Channel) {
m.Called(dst, src)
}