16 lines
431 B
Plaintext
16 lines
431 B
Plaintext
Pretend string to be unicode,
|
|
fixes compatibility with python 2.7
|
|
|
|
Index: policyd-spf
|
|
--- policyd-spf.orig
|
|
+++ policyd-spf
|
|
@@ -52,6 +52,8 @@ policydspfsupp._setExceptHook()
|
|
#############################################
|
|
def _cidrmatch(ip, netwrk):
|
|
"""Match connect IP against a CIDR network of other IP addresses."""
|
|
+ netwrk = unicode(netwrk)
|
|
+ ip = unicode(ip)
|
|
|
|
try:
|
|
address = ipaddress.ip_address(ip)
|