Skip to content
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

Add support for mirrored networking mode #766

Closed
wants to merge 2 commits into from
Closed

Add support for mirrored networking mode #766

wants to merge 2 commits into from

Conversation

Uldiniad
Copy link

Closes: #714

@@ -133,6 +133,15 @@ public static string GetVMSwitchName()
var isRunning = match.Groups[3].Value == "Running";
var version = uint.Parse(match.Groups[4].Value, CultureInfo.InvariantCulture);

var networkingModeResult = await ProcessUtils.RunCapturedProcessAsync(WslPath, new [] { "--distribution", name, "--", "wslinfo", "--networking-mode", "-n" }, Encoding.UTF8, cancellationToken);
var hostnameResult = await ProcessUtils.RunCapturedProcessAsync(WslPath, new [] { "--distribution", name, "--", "hostname", "-I" }, Encoding.UTF8, cancellationToken);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could possibly return more than one IP address? If so, this needs tweaking to handle such a scenario

@dorssel
Copy link
Owner

dorssel commented Nov 22, 2023

Thank you for contributing. However, some design decisions were made that make this change no longer applicable. Please see #774.

(This is not to discourage you at all, I really appreciate your effort.)

@dorssel dorssel closed this Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for WSL2 v 2.0 in Mirrored mode
2 participants