Skip to content

Commit 8031cf9

Browse files
committed
5.12.2
- Fix lookup count for redirects
1 parent 9e6648e commit 8031cf9

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.vscode/launch.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@
8181
],
8282
"console": "integratedTerminal",
8383
"justMyCode": true
84+
},
85+
{
86+
"name": "checkdmarc gmail.com --skip-tls",
87+
"type": "debugpy",
88+
"request": "launch",
89+
"module": "checkdmarc._cli",
90+
"args": [
91+
"gmail.com",
92+
"--skip-tls"
93+
],
94+
"console": "integratedTerminal",
95+
"justMyCode": true
8496
},
8597
{
8698
"name": "checkdmarc --skip-tls google.com",
@@ -95,25 +107,25 @@
95107
"justMyCode": true
96108
},
97109
{
98-
"name": "checkdmarc --skip-tls m11‍.‍email‍.‍samsung‍.‍com",
110+
"name": "checkdmarc --skip-tls m1ema1.il.samsung.com",
99111
"type": "debugpy",
100112
"request": "launch",
101113
"module": "checkdmarc._cli",
102114
"args": [
103115
"--skip-tls",
104-
"m11‍.‍email‍.‍samsung‍.‍com"
116+
"m11.email.samsung.com"
105117
],
106118
"console": "integratedTerminal",
107119
"justMyCode": true
108120
},
109121
{
110-
"name": "checkdmarc --skip-tls galaxylife‍.‍samsungusa‍.‍com",
122+
"name": "checkdmarc --skip-tls galaxylife.samsungusa.com",
111123
"type": "debugpy",
112124
"request": "launch",
113125
"module": "checkdmarc._cli",
114126
"args": [
115127
"--skip-tls",
116-
"m11‍.‍email‍.‍samsung‍.‍com"
128+
"m11.email.samsung.com"
117129
],
118130
"console": "integratedTerminal",
119131
"justMyCode": true
@@ -155,13 +167,13 @@
155167
"justMyCode": true
156168
},
157169
{
158-
"name": "checkdmarc --skip-tls info‍.‍fr‍.‍vorwerk‍.‍com",
170+
"name": "checkdmarc --skip-tls info‍.fr‍.vorwerk‍.com",
159171
"type": "debugpy",
160172
"request": "launch",
161173
"module": "checkdmarc._cli",
162174
"args": [
163175
"--skip-tls",
164-
"info‍.‍fr‍.‍vorwerk‍.‍com",
176+
"info‍.fr‍.vorwerk‍.com",
165177
],
166178
"console": "integratedTerminal",
167179
"justMyCode": true

checkdmarc/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
See the License for the specific language governing permissions and
2020
limitations under the License."""
2121

22-
__version__ = "5.12.1"
22+
__version__ = "5.12.2"
2323

2424
OS = platform.system()
2525
OS_RELEASE = platform.release()

checkdmarc/spf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ def parse_spf_record(
557557
parsed["all"] = redirect["parsed"]["all"]
558558
mechanism_dns_lookups += redirect["dns_lookups"]
559559
mechanism_void_dns_lookups += redirect["void_dns_lookups"]
560+
total_dns_lookups += redirect["dns_lookups"]
561+
total_dns_lookups += redirect["void_dns_lookups"]
560562
if total_dns_lookups > 10:
561563
raise SPFTooManyDNSLookups(
562564
"Parsing the SPF record requires "

0 commit comments

Comments
 (0)