Skip to content

Commit

Permalink
Merge pull request #7534 from hashicorp/b-windows-dev-network
Browse files Browse the repository at this point in the history
windows: support -dev mode
  • Loading branch information
Mahmood Ali authored Mar 30, 2020
2 parents dfb5513 + b398f28 commit 5855b62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions command/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,11 @@ func newDevModeConfig(devMode, connectMode bool) (*devModeConfig, error) {
}

func (mode *devModeConfig) networkConfig() error {
if runtime.GOOS == "windows" {
mode.bindAddr = "127.0.0.1"
mode.iface = "Loopback Pseudo-Interface 1"
return nil
}
if runtime.GOOS == "darwin" {
mode.bindAddr = "127.0.0.1"
mode.iface = "lo0"
Expand Down

0 comments on commit 5855b62

Please sign in to comment.