Hacker News new | ask | show | jobs
by IvarTJ 4989 days ago

    var hostsFile = process.platform == "linux" ? "/etc/hosts/" : "C:\\Windows\\System32\\drivers\\etc\\hosts";
Surely this won't work on anything but Windows.