Merge remote-tracking branch 'origin/pr/32'
This commit is contained in:
commit
80aaf15128
@ -14,7 +14,10 @@ from string import ascii_letters, digits
|
|||||||
from werkzeug.wrappers import Request
|
from werkzeug.wrappers import Request
|
||||||
from werkzeug.exceptions import BadRequest
|
from werkzeug.exceptions import BadRequest
|
||||||
|
|
||||||
import ipaddress
|
try:
|
||||||
|
import ipaddress
|
||||||
|
except ImportError:
|
||||||
|
import ipaddr as ipaddress
|
||||||
|
|
||||||
|
|
||||||
def anonymize(remote_addr):
|
def anonymize(remote_addr):
|
||||||
|
Loading…
Reference in New Issue
Block a user