-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usbip: make more reliable by using default route #444
Conversation
The nameserver does not necessarily need to be the windows host.
Will this work? When I use this command I get quite a bit of results, none which is the correct one.
I am currently using Would be nice to have a solution that worked with all the various setups. Perhaps make it a configuration option if there is no reliable way to get the correct IP. |
There is none and the IP isn't hardcoded by default, hence we cannot hardcode it. Microsoft also does not have a better way https://learn.microsoft.com/en-us/windows/wsl/networking |
I've added an option to allow to customize the snippet to obtain the ip address. It is also possible to just hardcode an IP. This should suffice for all listed usecases even if it involves a little bit of manual work. |
97469c8
to
f5a6c03
Compare
That works for me, currently I used this one:
I agree that we shouldn't add any custom logic to support wsl-vpnkit. Hopefully it is possible to get rid of it at some point. The VPN my company uses, still doesn't work without it, no matter what network mode/configuration is used. I guess other option could be a list of static IP addresses and then fall-back to the lookup you have. Or just leave it totally up to the user as you have done here. For example something like this, and a ping check could be done for each IP in the list and then fallback to the command.
|
Since checking each IP with ping takes one second and it will increase the complexity more than I want it to right now, I will just leave it up to the end user to configure it correct. |
I tried this with NAT and it didn't work due to weird Nix string escape, not sure if it is a Nix lang regression.
So with one escape the |
Or I guess that is just the representation of the string:
So I think it needs to be double escaped.
|
The nameserver does not necessarily need to be the windows host.
/cc @terlar