networkInterfaceDefault() fixed CMD popup (windows)
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ function getDefaultNetworkInterface() {
|
||||
// https://www.inetdaemon.com/tutorials/internet/ip/routing/default_route.shtml
|
||||
let defaultIp = '';
|
||||
const cmd = 'netstat -r';
|
||||
const result = execSync(cmd);
|
||||
const result = execSync(cmd, util.execOptsWin);
|
||||
const lines = result.toString().split(os.EOL);
|
||||
lines.forEach(line => {
|
||||
line = line.replace(/\s+/g, ' ').trim();
|
||||
|
||||
Reference in New Issue
Block a user