xjasonlyu/tun2socks

View on GitHub
transport/simple-obfs/tls.go

Summary

Maintainability
A
35 mins
Test Coverage

Method TLSObfs.read has 5 return statements (exceeds 4 allowed).
Open

func (to *TLSObfs) read(b []byte, discardN int) (int, error) {
    buf := pool.Get(discardN)
    _, err := io.ReadFull(to.Conn, buf)
    if err != nil {
        return 0, err
Severity: Major
Found in transport/simple-obfs/tls.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status