mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 06:33:18 +02:00
added explicit only mode for docker provider, updated dependencies
This commit is contained in:
@@ -42,7 +42,7 @@ func NewHandler(cfg *config.Config) http.Handler {
|
||||
func checkHost(f http.HandlerFunc) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Host != common.APIHTTPAddr {
|
||||
Logger.Warnf("invalid request to API server with host: %s, expected: %s", r.Host, common.APIHTTPAddr)
|
||||
Logger.Warnf("invalid request to API server with host: %s, expect %s", r.Host, common.APIHTTPAddr)
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
w.Write([]byte("invalid request"))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user