Skip to content

Commit

Permalink
Added more info to fatal log message
Browse files Browse the repository at this point in the history
  • Loading branch information
moberghammer committed Apr 24, 2024
1 parent 1db6df0 commit a786eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func root(_ *cobra.Command, _ []string) {
connections := append(connections4, connections6...)

if len(connections) != 1 {
log.Fatalf("Unable to guess remote IP. %d results returned", len(connections))
log.Fatalf("Unable to guess remote IP for %s. %d results returned, ipv4 connections '%v' , ipv6 connections '%v'", hostname, len(connections), connections4, connections6)
}

q.Add("remote_ip", connections[0].String())
Expand Down

0 comments on commit a786eda

Please sign in to comment.