-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(#88): Adding an option for use local IP as host #115
Conversation
src/Helper.ts
Outdated
|
||
public static getEthernetInfo() { | ||
var interfaces = os.networkInterfaces(); | ||
return interfaces['Ethernet'][1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interfaces['Ethernet']
I think, it depends on adapter name & varies device to device.. Right?
one reference : https://stackoverflow.com/a/49205710/6120338
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually you are right. Thanks for the link.
src/Helper.ts
Outdated
@@ -150,5 +151,8 @@ export class Helper { | |||
return proxy; | |||
} | |||
|
|||
|
|||
public static getEthernetInfo() { | |||
var interfaces = os.networkInterfaces(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let
or const
😸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot that this is typescript. I am fixing this soon
Thank you sooooo much for the PR 💟 |
Added Ethernet address along with configuration. I have prepared this PR for #88 but without using
node-ip
.