xjasonlyu/tun2socks

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

Summary

Maintainability
A
35 mins
Test Coverage

Method HTTPObfs.Read has 5 return statements (exceeds 4 allowed).
Open

func (ho *HTTPObfs) Read(b []byte) (int, error) {
    if ho.buf != nil {
        n := copy(b, ho.buf[ho.offset:])
        ho.offset += n
        if ho.offset == len(ho.buf) {
Severity: Major
Found in transport/simple-obfs/http.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status