Skip to content

Add regressions tests for the mod_dnsbl module in this repo, as we us… - #38

Merged
Castaglia merged 1 commit into
masterfrom
dnsl-integration-tests
Aug 28, 2026
Merged

Castaglia merged 1 commit into
masterfrom
dnsl-integration-tests

Conversation

@Castaglia

Copy link
Copy Markdown
Owner

…e mod_proxy_protocol to lie about the client's IP address.

…e mod_proxy_protocol to lie about the client's IP address.
@Castaglia Castaglia self-assigned this Aug 28, 2026
Comment thread mod_proxy_protocol.c
}

static const char haproxy_v2_sig[12] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A";
static const char __attribute__ ((__nonstring__)) haproxy_v2_sig[12] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A";

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quells a compiler warning about an unterminated string initializer.

Comment thread mod_proxy_protocol.c

if (pr_netaddr_cmp(session.c->local_addr, proxied_dst_addr) != 0 ||
session.c->local_port != proxied_dst_port) {
session.c->local_port != (int) proxied_dst_port) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quells compiler warning about comparing signed and unsigned ints.

Comment thread mod_proxy_protocol.c
session.c->remote_name = pr_netaddr_get_ipstr(session.c->remote_addr);
}

pr_netaddr_set_sess_addrs();

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually resets the cached pointers for the session, for the remote IP/name.

@Castaglia
Castaglia merged commit fb7c6d8 into master Aug 28, 2026
5 checks passed
@Castaglia
Castaglia deleted the dnsl-integration-tests branch August 28, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant