3 ms·
var hostsFile = process.platform == "linux" ? "/etc/hosts/" : "C:\\Windows\\System32\\drivers\\etc\\hosts"; Surely this won't work on anything but Windows.
by IvarTJ 14y ago
var hostsFile = process.platform == "linux" ? "/etc/hosts/" : "C:\\Windows\\System32\\drivers\\etc\\hosts";
Surely this won't work on anything but Windows.