shayne / go-wsl2-host

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

Fix GetHostIP regular expression #74

Closed g9rga closed 1 year ago

g9rga commented 2 years ago

Hello! There is an issue with host ip detection in non-english locales. In my env I have netsh output in the following format: "IP-xxx xxx.xxx.xxx.xxx" There is not space after IP, and there is no colon.