mirror of
https://github.com/cascadium/wsl-windows-toolbar-launcher.git
synced 2026-04-27 05:25:50 +03:00
[GH-ISSUE #42] Update README.md to calculate 'Win Host IP Addr' without /etc/resolv.conf (for DISPLAY env variable) #37
Labels
No labels
duplicate
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wsl-windows-toolbar-launcher#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryeleo on GitHub (Jul 14, 2021).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/42
I recently had to update my
/etc/resolv.confto include a proper DNS server -- this resolved an issue I was struggling with in my Network. This had the unfortunate result of breaking my DISPLAY environment variable for wsl-windows-toolbar!I recommend updating the README.md to include the following example for calculating own IP Address. I think this should work well for all wsl folks -- I've only tested on my WSL2 Ubuntu 20.04 so far:
I hope this is a more resilient solution for folks, but I'm unsure if it is a stable alternative to using /etc/resolv.conf. What do you think?
@fquinner commented on GitHub (Jan 5, 2022):
I think we're actually fine without this because the example provided was only really an example. I have seen literally hundreds of commands to do this, each of which have their pros and cons (for example, your example assumes grep=egrep but that's not the case for all distros). I think what we have is probably fine as a starting point under the assumption that mileage may vary depending on the distro / wsl configuration / customization.