Skip to content

Upd. Settings. Improved counting of FW nets.#671

Merged
alexandergull merged 4 commits into
devfrom
upd-net-count
Jun 19, 2026
Merged

Upd. Settings. Improved counting of FW nets.#671
alexandergull merged 4 commits into
devfrom
upd-net-count

Conversation

@svfcode

@svfcode svfcode commented Jun 12, 2026

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts Security Firewall statistics calculation by changing how the plugin counts “covered IPs” at the end of a firewall update, replacing the previous SQL-based IPv6 estimation with a PHP-side IPv6 prefix-length calculation.

Changes:

  • Added an IPv6-specific counting routine (spbc_security_firewall_update__get_ipv6_ips_count()).
  • Updated spbc_security_firewall_update__get_ips_count() to compute IPv4 counts via SQL and IPv6 counts via the new helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread inc/fw-update.php
Comment thread inc/fw-update.php Outdated
Comment thread inc/fw-update.php Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread inc/fw-update.php Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread inc/fw-update.php
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@alexandergull alexandergull merged commit a6aadf5 into dev Jun 19, 2026
7 checks passed
@alexandergull alexandergull deleted the upd-net-count branch June 19, 2026 02:46
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.

5 participants