shayne / go-wsl2-host

Automatically update your Windows hosts file with the WSL2 VM IP address
1.65k stars 140 forks source link

Handle kept open so external editing of the hosts file fails. #64

Open avail opened 2 years ago

avail commented 2 years ago

As long as wsl2host.exe is running, editing the hosts file manually has a large probability of failing due to either wsl2host keeping a handle open, or it just writing to the file too often.