Skip to content

Commit

Permalink
updated DNS table header
Browse files Browse the repository at this point in the history
  • Loading branch information
jftuga committed Aug 10, 2019
1 parent ed7d3a1 commit 8961d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nics_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func gatewayAndDNS(allIPv4, allIPv6 []string, brief bool) {

table := tablewriter.NewWriter(os.Stdout)
table.SetAutoWrapText(false)
table.SetHeader([]string{"Gateway", "DNS1", "DNS2"})
table.SetHeader([]string{"Gateway", "DNS 1", "DNS 2"})
table.Append([]string{gateway, dns[0], dns[1]})

table.Render()
Expand Down
2 changes: 1 addition & 1 deletion nics_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func gatewayAndDNS(allIPv4, allIPv6 []string, brief bool) {

table := tablewriter.NewWriter(os.Stdout)
table.SetAutoWrapText(false)
table.SetHeader([]string{"Gateway", "DNS1", "DNS2"})
table.SetHeader([]string{"Gateway", "DNS 1", "DNS 2"})
for ip := range ipMapGateway {
if arrayContains(ip, allIPv4) {
table.Append([]string{ipMapGateway[ip], dns[0], dns[1]})
Expand Down

0 comments on commit 8961d77

Please sign in to comment.