add proxy support for 'docker restart'
This commit is contained in:
1 parent
2a120e5565
commit
ca4b8e6f8e
2 files changed
+21
-1
No files matched your search
+1
-1
@@ -70,7 +70,7 @@ func isCreateContainer(r *http.Request) bool {
|
||||
}
|
||||
|
||||
func isStartContainer(r *http.Request) bool {
|
||||
ok, err := regexp.MatchString("^/v[0-9\\.]*/containers/[^/]*/start$", r.URL.Path)
|
||||
ok, err := regexp.MatchString("^/v[0-9\\.]*/containers/[^/]*/(re)?start$", r.URL.Path)
|
||||
return err == nil && ok
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user