dotcloud/docker

View on GitHub
libnetwork/portallocator/portallocator_freebsd.go

Summary

Maintainability
A
35 mins
Test Coverage

Function getDynamicPortRange has 5 return statements (exceeds 4 allowed).
Open

func getDynamicPortRange() (start int, end int, err error) {
    portRangeKernelSysctl := []string{"net.inet.ip.portrange.hifirst", "net.ip.portrange.hilast"}
    portRangeLowCmd := exec.Command("/sbin/sysctl", portRangeKernelSysctl[0])
    var portRangeLowOut bytes.Buffer
    portRangeLowCmd.Stdout = &portRangeLowOut
Severity: Major
Found in libnetwork/portallocator/portallocator_freebsd.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status