Correct typo assigning KAPOW_CONTROL_URL env variable

This commit is contained in:
Héctor Hurtado
2020-04-06 19:38:43 +02:00
parent e6e25f25c7
commit 4988c48e03
+1 -1
View File
@@ -52,7 +52,7 @@ var ServerCmd = &cobra.Command{
os.Setenv("KAPOW_DATA_URL", "http://"+sConf.DataBindAddr)
}
if _, exist := os.LookupEnv("KAPOW_CONTROL_URL"); !exist {
os.Setenv("KAPOW_CONTROL_URL", "http://"+sConf.DataBindAddr)
os.Setenv("KAPOW_CONTROL_URL", "http://"+sConf.ControlBindAddr)
}
server.StartServer(sConf)