1.5 KiB
1.5 KiB
NFTables Naming Consolidation Summary
This document summarizes the changes made to consolidate the naming convention for IP allow/block lists in the NFTables integration.
Changes Made
-
Updated NFTablesProxy interface (
ts/proxies/nftables-proxy/models/interfaces.ts):- Changed
allowedSourceIPstoipAllowList - Changed
bannedSourceIPstoipBlockList
- Changed
-
Updated NFTablesProxy implementation (
ts/proxies/nftables-proxy/nftables-proxy.ts):- Updated all references from
allowedSourceIPstoipAllowList - Updated all references from
bannedSourceIPstoipBlockList
- Updated all references from
-
Updated NFTablesManager (
ts/proxies/smart-proxy/nftables-manager.ts):- Changed mapping from
allowedSourceIPstoipAllowList - Changed mapping from
bannedSourceIPstoipBlockList
- Changed mapping from
Files Already Using Consistent Naming
The following files already used the consistent naming convention ipAllowList and ipBlockList:
- Route helpers (
ts/proxies/smart-proxy/utils/route-helpers.ts) - Integration test (
test/test.nftables-integration.ts) - NFTables example (
examples/nftables-integration.ts) - Route types (
ts/proxies/smart-proxy/models/route-types.ts)
Result
The naming is now consistent throughout the codebase:
ipAllowListis used for lists of allowed IP addressesipBlockListis used for lists of blocked IP addresses
This matches the naming convention already established in SmartProxy's core routing system.