Explorar el Código

Merge pull request #77 from coroot/localhost_in_push_mode

Listen on `localhost` when operating in push mode
Anton Petruhin hace 2 años
padre
commit
8b0243e6c9
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      flags/flags.go

+ 4 - 0
flags/flags.go

@@ -66,4 +66,8 @@ func init() {
 			*ProfilesEndpoint = u.JoinPath("/v1/profiles")
 			*ProfilesEndpoint = u.JoinPath("/v1/profiles")
 		}
 		}
 	}
 	}
+
+	if *MetricsEndpoint != nil {
+		*ListenAddress = "127.0.0.1:10300"
+	}
 }
 }