Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
fix docker.host.internal
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnirtl committed Feb 10, 2020
1 parent 8d6935a commit 16249b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/envvars/envvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func SetEnvVars(services []string, selected []string) error {
}

if val == "" {
val = "docker.host.internal"
val = "host.docker.internal"
}

err := os.Setenv(key, val)
Expand Down
4 changes: 2 additions & 2 deletions internal/envvars/envvars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func TestSetEnvVars(t *testing.T) {
t.Errorf("%s set to %s instead of %s", envName, envVal, service)
}
} else {
if envVal != "docker.host.internal" {
t.Errorf("%s set to %s instead of %s", envName, envVal, "docker.host.internal")
if envVal != "host.docker.internal" {
t.Errorf("%s set to %s instead of %s", envName, envVal, "host.docker.internal")
}
}
}
Expand Down

0 comments on commit 16249b6

Please sign in to comment.