pkg/dns/ttl.go

Summary

Maintainability
A
35 mins
Test Coverage
B
83%

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

func ReplaceTTLInResponse(response []byte, TTL uint32) ([]byte, error) {
    var p dnsmessage.Parser

    header, err := p.Start(response)
    if err != nil {
Severity: Major
Found in pkg/dns/ttl.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status