mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-16 22:13:33 +02:00
Add Mikrotik as CLI client (#69)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user