Skip to content

Releases: shayne/go-wsl2-host

Development Build

12 Jan 09:46
8bad636
Compare
Choose a tag to compare
Development Build Pre-release
Pre-release

Features

  • add direct run mode #81 (wcb)

Bug Fixes

  • GetHostIP cannot get ip in chinese language os. #81 (wcb)

Commits

  • e6c6bed: Merge branch 'shayne:master' into master (wcb) #81

v0.3.5

21 Jul 06:35
Compare
Choose a tag to compare

v0.3.5 Changes

  • 127.0.0.1 for WSL 1

To upgrade:

From an elevated / Administrator console

> .\wsl2host.exe stop
> .\wsl2host.exe remove
> .\wsl2host.exe install

v0.3.4

15 Mar 04:10
Compare
Choose a tag to compare

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

11 Mar 22:38
Compare
Choose a tag to compare

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

12 Nov 02:31
Compare
Choose a tag to compare

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

11 Nov 16:53
Compare
Choose a tag to compare

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

01 Nov 00:50
1002041
Compare
Choose a tag to compare

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

31 Oct 16:36
Compare
Choose a tag to compare

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

07 Oct 16:35
Compare
Choose a tag to compare

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 becomes ubuntu1804.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

07 Oct 02:28
Compare
Choose a tag to compare

Complete re-write

  • Changes to use <distro-hostname>.wsl. Distro names are normalized to hostnames, i.e. Ubuntu-18.04 becomes ubuntu1804.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