Skip to content

fix: move format_ip definition above --quick-add block#35

Merged
edmundlod merged 1 commit into
mainfrom
fix/quick-add-format-ip
May 27, 2026
Merged

fix: move format_ip definition above --quick-add block#35
edmundlod merged 1 commit into
mainfrom
fix/quick-add-format-ip

Conversation

@edmundlod

Copy link
Copy Markdown
Owner

format_ip() was defined after the --quick-add early-exit block, so invoking postallow -q <domain> hit format_ip: not found and aborted.

Move the function definition up to just before the _norm_flag block, where it is available to both the quick-add path and the main run. No behaviour change for the normal full run.

format_ip() was defined after the --quick-add early-exit block, so
calling it from --quick-add resulted in 'format_ip: not found'.
Move it up to just before the _norm_flag block, where it is available
to both the quick-add path and the main run.
@edmundlod edmundlod merged commit c956559 into main May 27, 2026
5 checks passed
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