The above re code match ipv4 address, it works when strings like this:
New connection: 55.66.77.88:60469 (55.66.77.89:2222) [session: 0]
But how about the IPv6 Environment, Strings like this:
New connection: ::ffff:55.66.77.88:60469 (::ffff:55.66.77.89:2222) [session: 0]
or
New connection: 2001:ddd:222:333:4444:5555::19e2:60028 (2001:dda:222:111::24a:2222) [session: 0]
In dblog.py, line11-13:
The above re code match ipv4 address, it works when strings like this:
New connection: 55.66.77.88:60469 (55.66.77.89:2222) [session: 0]
But how about the IPv6 Environment, Strings like this:
New connection: ::ffff:55.66.77.88:60469 (::ffff:55.66.77.89:2222) [session: 0]
orNew connection: 2001:ddd:222:333:4444:5555::19e2:60028 (2001:dda:222:111::24a:2222) [session: 0]