test
This commit is contained in:
parent
9209c26864
commit
98cb594e82
@ -81,8 +81,8 @@ func resultsToJSON(data []string) {
|
|||||||
splitStrings := strings.Split(i, " ")
|
splitStrings := strings.Split(i, " ")
|
||||||
hostname := splitStrings[1]
|
hostname := splitStrings[1]
|
||||||
ip := splitStrings[2]
|
ip := splitStrings[2]
|
||||||
txt := splitStrings[3]
|
// txt := splitStrings[3]
|
||||||
dns := &model.Results{IP: ip, Hostname: hostname, TXT: txt}
|
dns := &model.Results{IP: ip, Hostname: hostname}
|
||||||
b, err := json.Marshal(dns)
|
b, err := json.Marshal(dns)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user