Add Mikrotik as CLI client (#69)

This commit is contained in:
Sam B
2019-07-12 16:00:38 +02:00
committed by Martin Polden
parent 4ce6452332
commit fb5fac92d2
3 changed files with 3 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func NotFoundHandler(w http.ResponseWriter, r *http.Request) *appError {
func cliMatcher(r *http.Request) bool {
ua := useragent.Parse(r.UserAgent())
switch ua.Product {
case "curl", "HTTPie", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient":
case "curl", "HTTPie", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik":
return true
}
return false