Skip to content

Commit

Permalink
Change linux default network-mode to user
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Dec 16, 2024
1 parent 1af1620 commit d4d23de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/crc/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ func GetPreset(config Storage) preset.Preset {
}

func defaultNetworkMode() network.Mode {
if runtime.GOOS != "linux" {
return network.UserNetworkingMode
}
return network.SystemNetworkingMode
}

func GetNetworkMode(config Storage) network.Mode {
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,11 @@ func PodmanCommandIsAvailable() error {
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ed25519")
dh = "npipe:////./pipe/crc-podman"
}
/* change linux default to user
if runtime.GOOS == "linux" {
ch = "ssh://[email protected]:22/run/user/1000/podman/podman.sock"
}
*/

os.Setenv("PATH", path)
os.Setenv("CONTAINER_SSHKEY", csshk)
Expand Down

0 comments on commit d4d23de

Please sign in to comment.