mirror of
https://github.com/georgyo/ifconfig.io.git
synced 2025-04-18 14:01:33 +00:00
#24: Add powershell user agents
This commit is contained in:
parent
5f8ebefe7f
commit
57adc03f87
2
main.go
2
main.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user