Commit a97e244
committed
Skip /etc/hosts modification when hostname already resolves to loopback
Modern macOS and Linux systems with systemd-resolved natively resolve
*.localhost to 127.0.0.1/::1 per RFC 6761, making the /etc/hosts entry
redundant. This avoids an unnecessary sudo prompt on those systems.1 parent 901e6b3 commit a97e244
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
257 | 266 | | |
258 | 267 | | |
259 | 268 | | |
| |||
0 commit comments