Skip to content
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

Closed
wants to merge 7 commits into from
Closed

Fix(#88): Adding an option for use local IP as host #115

wants to merge 7 commits into from

Conversation

rjoydip-zz
Copy link
Collaborator

Added Ethernet address along with configuration. I have prepared this PR for #88 but without using node-ip.

src/Helper.ts Outdated

public static getEthernetInfo() {
var interfaces = os.networkInterfaces();
return interfaces['Ethernet'][1];
Copy link
Owner

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

Copy link
Collaborator Author

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();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let or const 😸

Copy link
Collaborator Author

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

@ritwickdey
Copy link
Owner

Thank you sooooo much for the PR 💟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants