Commit 7267213
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 3dbfdf5 commit 7267213
1 file changed
+2
-2
lines changed| 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