Commit 1d4d380
committed
Actually use the returned value
It seems on Unix, the behaviour is to convert integers into IP
addresses, whereas Windows tries to resolve it. Regardless, it's silly
to test what the type is, since it returns the unmodified hostname if it
can't be resolved, so it'll always be a string, error or not.1 parent b4e3c0c commit 1d4d380
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
0 commit comments