1
0
mirror of https://github.com/georgyo/ifconfig.io.git synced 2025-04-18 14:01:33 +00:00

: Add powershell user agents

This commit is contained in:
George Shammas 2022-06-15 15:56:59 +00:00
parent 5f8ebefe7f
commit 57adc03f87

@ -247,7 +247,7 @@ func main() {
func isReqFromCmdLine(ua string) bool {
parts := strings.SplitN(ua, "/", 2)
switch parts[0] {
case "curl", "HTTPie", "httpie-go", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik", "xh":
case "curl", "HTTPie", "httpie-go", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik", "xh", "WindowsPowerShell", "PowerShell":
return true
}
return false