Merge pull request #7534 from hashicorp/b-windows-dev-network

windows: support -dev mode
This commit is contained in:
Mahmood Ali 2020-03-30 14:35:28 -04:00 committed by GitHub
commit 7df337e4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -743,6 +743,11 @@ func newDevModeConfig(devMode, connectMode bool) (*devModeConfig, error) {
} }
func (mode *devModeConfig) networkConfig() 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" { if runtime.GOOS == "darwin" {
mode.bindAddr = "127.0.0.1" mode.bindAddr = "127.0.0.1"
mode.iface = "lo0" mode.iface = "lo0"