Compare commits
2 Commits
v0.7.1
...
antifascista
| Author | SHA1 | Date | |
|---|---|---|---|
|
9d00fd4126
|
|||
|
e1f899684a
|
@@ -1,5 +1,5 @@
|
||||
name: "access_log"
|
||||
version: "0.7.1"
|
||||
version: "0.7.2"
|
||||
authors:
|
||||
- "f <f@sutty.nl>"
|
||||
targets:
|
||||
|
||||
+5
-5
@@ -14,7 +14,7 @@ require "./swd"
|
||||
require "./asn"
|
||||
require "./presence"
|
||||
|
||||
VERSION = "0.7.1"
|
||||
VERSION = "0.7.2"
|
||||
|
||||
Log.setup_from_env
|
||||
|
||||
@@ -125,11 +125,11 @@ query = "insert into access_logs (#{fields.join(",")}) values (#{params.join(","
|
||||
# regex.
|
||||
if crawler
|
||||
crawler_re = Regex.union(crawlers.map { |c| c.pattern })
|
||||
end
|
||||
|
||||
if ai_bots
|
||||
ai_bot_re = Regex.union(ai_bots.keys)
|
||||
crawler_re = Regex.union(crawler_re, ai_bot_re)
|
||||
if ai_bots
|
||||
ai_bot_re = Regex.union(ai_bots.keys)
|
||||
crawler_re = Regex.union(crawler_re, ai_bot_re)
|
||||
end
|
||||
end
|
||||
|
||||
def remove_socket!(socket)
|
||||
|
||||
Reference in New Issue
Block a user