kubenetworks/kubevpn

View on GitHub
pkg/core/gvisorudpforwarder.go

Summary

Maintainability
A
1 hr
Test Coverage

Function UDPForwarder has 62 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func UDPForwarder(s *stack.Stack) func(id stack.TransportEndpointID, pkt *stack.PacketBuffer) bool {
    GvisorUDPForwardAddr := GvisorUDPForwardAddr
    return udp.NewForwarder(s, func(request *udp.ForwarderRequest) {
        endpointID := request.ID()
        log.Debugf("[TUN-UDP] LocalPort: %d, LocalAddress: %s, RemotePort: %d, RemoteAddress %s",
Severity: Minor
Found in pkg/core/gvisorudpforwarder.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status