Skip to content

Commit

Permalink
don't print empty hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
leesoh committed May 9, 2022
1 parent bf6a5c8 commit bea63c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/result/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (r *Result) AddHost(new *Host) {

type Host struct {
IP net.IP `json:"ip"`
Name string `json:"hostname"`
Name string `json:"hostname,omitempty"`
TCPPorts map[int]*Port `json:"tcp_ports,omitempty"`
UDPPorts map[int]*Port `json:"udp_ports,omitempty"`
}
Expand Down

0 comments on commit bea63c7

Please sign in to comment.