portainer/portainer

View on GitHub
api/http/proxy/factory/agent.go

Summary

Maintainability
A
35 mins
Test Coverage

Method ProxyFactory.NewAgentProxy has 5 return statements (exceeds 4 allowed).
Open

func (factory *ProxyFactory) NewAgentProxy(endpoint *portainer.Endpoint) (*ProxyServer, error) {
    urlString := endpoint.URL

    if endpointutils.IsEdgeEndpoint(endpoint) {
        tunnel, err := factory.reverseTunnelService.GetActiveTunnel(endpoint)
Severity: Major
Found in api/http/proxy/factory/agent.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status