xjasonlyu/tun2socks

View on GitHub
core/device/tun/tun_netstack.go

Summary

Maintainability
A
40 mins
Test Coverage

Function Open has 6 return statements (exceeds 4 allowed).
Open

func Open(name string, mtu uint32) (device.Device, error) {
    t := &TUN{name: name, mtu: mtu}

    if len(t.name) >= unix.IFNAMSIZ {
        return nil, fmt.Errorf("interface name too long: %s", t.name)
Severity: Major
Found in core/device/tun/tun_netstack.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status