From b514b2145c7f060bac9a532c0afdc336e1b462c7 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 29 Oct 2015 17:03:54 -0700 Subject: [PATCH] Setting the default network interface for dev mode only in Linux and Darwin --- command/agent/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/config.go b/command/agent/config.go index 45c3ea26ad0..e754a9d8e0d 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -226,7 +226,7 @@ func DevConfig() *Config { conf.DisableAnonymousSignature = true if runtime.GOOS == "darwin" { conf.Client.NetworkInterface = "lo0" - } else { + } else if runtime.GOOS == "linux" { conf.Client.NetworkInterface = "lo" }