Skip to content

Commit d6624c2

Browse files
committed
use "hostname" to check for blocking
1 parent dd1314e commit d6624c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aikido_zen/sinks/socket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _getaddrinfo_after(func, instance, args, kwargs, return_value):
2020
hostname = normalize_hostname(host)
2121

2222
# Store hostname and check if we should stop this request from happening
23-
if should_block_outbound_domain(host, port):
23+
if should_block_outbound_domain(hostname, port):
2424
raise AikidoSSRF(f"Zen has blocked an outbound connection to {hostname}")
2525

2626
# Run vulnerability scan with the return value (DNS results)

0 commit comments

Comments
 (0)