Tags: ag-go/doggo
Tags
fix: Correctly print colored text on Windows This commit will fix mr-karan#40. Replacing os.Stdout with color.Output will fix the problem on Windows's console. Internally, `color.Output` is same as `colorable.NewColorableStdout()`, according to https://github.com/fatih/color/blob/acd5f3bb28257af7d3c4817ab6842e39bd0fcf34/color.go#L25-L27 see also: https://godocs.io/github.com/mattn/go-colorable#NewColorableStdout
fix: fallback to tcp if response is truncated Based on a report `doggo txt google.com @udp://1.1.1.1` failed. This record had 704 bytes as the message length however the response gets truncated if it exceeds 512 bytes with UDP. `dig` transparently fallbacks to `tcp`, so this commit adds the same mechanism.
PreviousNext