Not necessary export conf.

This commit is contained in:
claudemiro
2015-01-31 15:18:38 -03:00
parent 201cba86a9
commit 846231f5f3
7 changed files with 16 additions and 19 deletions
+3 -3
View File
@@ -17,12 +17,12 @@ import (
func newRouter() *mux.Router {
router := mux.NewRouter().StrictSlash(true)
if Conf.Expvar {
if !Conf.WasProvidedUserAndPassword() {
if conf.Expvar {
if !conf.WasProvidedUserAndPassword() {
panic("Your are exporting debug variables and looks like you forget to define an User and a Password")
}
router.Handle("/debug/vars", httpauth.SimpleBasicAuth(Conf.User, Conf.Password)(http.DefaultServeMux))
router.Handle("/debug/vars", httpauth.SimpleBasicAuth(conf.User, conf.Password)(http.DefaultServeMux))
}
for _, route := range routes {