(target string)
| 372 | } |
| 373 | |
| 374 | func resolveIPName(target string) string { |
| 375 | if target == "" { return "" } |
| 376 | ips, err := net.LookupIP(target) |
| 377 | if err != nil || len(ips) == 0 { return "" } |
| 378 | for _, ip := range ips { |
| 379 | if ip.To4() != nil { return ip.String() } |
| 380 | } |
| 381 | return ips[0].String() |
| 382 | } |
| 383 | |
| 384 | func displayHostname(hi sshconfig.HostInfo) string { |
| 385 | if hi.Hostname != "" { return hi.Hostname } |
no outgoing calls
no test coverage detected