We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce77c0c commit 87cda90Copy full SHA for 87cda90
.vscode/getNet.js
@@ -1,8 +1,8 @@
1
const { networkInterfaces } = require('os');
2
3
module.exports = async (mode = 'dev') => {
4
- const { WiFi } = getIp();
5
- const ip = WiFi ? WiFi[0] : undefined;
+ const { WiFi, Ethernet } = getIp();
+ const [ip] = WiFi || Ethernet;
6
const port = '5500';
7
const src = `https://${ip || '10.0.0'}:${port}`;
8
console.log('Server starting at: ', src);
0 commit comments