Releases: shayne/go-wsl2-host
Development Build
v0.3.5
v0.3.4
v0.3.4 Changes
- A more robust implementation of detecting the IP address using /proc (fix for #17)
v0.3.3 Changes
- Introduce distro agnostic approach to getting WSL IP using /proc/net/fib_trie
- Ignore Docker Desktop distros (having prefix "docker-desktop")
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.3.3
v0.3.3 Changes
- Introduce distro agnostic approach to getting WSL IP using /proc/net/fib_trie
- Ignore Docker Desktop distros (having prefix "docker-desktop")
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.3.2
v0.3.1 Changes
- Fix error logic around getting IP from WSL2 VM
- Add more Windows Event Viewer logging
Specifying aliases
As of v0.3 you can no specify aliases that point to your WSL2 VM IP. Having some.client.local
, may be useful in your development workflow.
To do this, create the file ~/.wsl2hosts
in your default WSL2 distro. Host names are space separated:
some.client.local my-app.local wsl.local
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.3.1
v0.3.1 Changes
- Add
f.Sync()
call #9
Specifying aliases
As of v0.3 you can no specify aliases that point to your WSL2 VM IP. Having some.client.local
, may be useful in your development workflow.
To do this, create the file ~/.wsl2hosts
in your default WSL2 distro. Host names are space separated:
some.client.local my-app.local wsl.local
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.3.0
v0.3.0 Changes
- Aliases via ~/.wsl2hosts
Specifying aliases
As of v0.3 you can no specify aliases that point to your WSL2 VM IP. Having some.client.local
, may be useful in your development workflow.
To do this, create the file ~/.wsl2hosts
in your default WSL2 distro. Host names are space separated:
some.client.local my-app.local wsl.local
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.2.2
v0.2.2 changes
- Make
remove
more robust in cleaning up service and eventlog source (clean remove)
NOTE: Upgrading Windows Insider will remove the service, but not cleanly. To reinstall after upgrading, first make sure you've downloaded the latest version of wsl2host
, then run remove
before install
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.2.1
v0.2.1 changes
- Only update hosts file if change detected
Complete re-write
- Changes to use
<distro-hostname>.wsl
. Distro names are normalized to hostnames, i.e. Ubuntu-18.04 becomesubuntu1804.wsl
. - Supports multiple distros at once, each one
<distro-hostname>.wsl
- Removes support for
windows.local
, if this was important let me know.
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install
v0.2.0
Complete re-write
- Changes to use
<distro-hostname>.wsl
. Distro names are normalized to hostnames, i.e. Ubuntu-18.04 becomesubuntu1804.wsl
. - Supports multiple distros at once, each one
<distro-hostname>.wsl
- Removes support for
windows.local
, if this was important let me know.
To upgrade:
From an elevated / Administrator console
> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install