pkg/core/gvisortcpforwarder.go
Function TCPForwarder
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TCPForwarder(s *stack.Stack) func(stack.TransportEndpointID, *stack.PacketBuffer) bool {
GvisorTCPForwardAddr := GvisorTCPForwardAddr
return tcp.NewForwarder(s, 0, 100000, func(request *tcp.ForwarderRequest) {
defer request.Complete(false)
id := request.ID()
Function ParseProxyInfo
has 7 return statements (exceeds 4 allowed). Open
Open
func ParseProxyInfo(conn net.Conn) (id stack.TransportEndpointID, err error) {
var n int
var port = make([]byte, 2)
// local port