1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

Small bug fixes with new docker versions

This commit is contained in:
Michael Crosby 2013-09-02 13:25:06 -07:00
parent 0baf3aead3
commit cfa8d3a442
4 changed files with 10 additions and 8 deletions

View file

@ -10,10 +10,10 @@ import (
)
var (
endpoint = flag.String("e", "", "Docker d endpoint.")
verbose = flag.Bool("v", false, "Verbose logging.")
port = flag.String("p", "9000", "Port to serve dockerui.")
assets = flag.String("-a", "/app", "Path to the assets.")
endpoint = flag.String("e", "", "Dockerd endpoint")
verbose = flag.Bool("v", false, "Verbose logging")
port = flag.String("p", "9000", "Port to serve dockerui")
assets = flag.String("a", "/app", "Path to the assets")
)
type multiHandler struct {
@ -34,6 +34,7 @@ func (h *multiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
func isDockerRequest(url string) bool {
log.Printf("Got request: %s", url)
return strings.Contains(url, "dockerapi/")
}