Conversation
On Linux, *.localhost domains resolve to ::1 (IPv6) before 127.0.0.1. Without IPv6 listen directives, requests hit the wrong server block, causing confusing errors from other projects. Adds listen [::]:port directives to all nginx templates (Magento, Laravel, proxy) conditionally on Linux. macOS is unaffected as it uses port forwarding.
Aquive
added a commit
to Aquive/magebox
that referenced
this pull request
Mar 30, 2026
macOS resolves .test domains to both ::1 (IPv6) and 127.0.0.1 (IPv4), and clients try IPv6 first. The pf redirect rules only handled IPv4, causing connection refused errors. This adds inet6 pf rules and enables IPv6 listen directives in nginx on macOS. Also fixes the upgrade path to always rewrite pf rules on bootstrap, preventing stale rules when the anchor file changes between versions. Related: qoliber#20 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
Aquive
added a commit
to Aquive/magebox
that referenced
this pull request
Mar 30, 2026
macOS resolves .test domains to both ::1 (IPv6) and 127.0.0.1 (IPv4), and clients try IPv6 first. The pf redirect rules only handled IPv4, causing connection refused errors. This adds inet6 pf rules and enables IPv6 listen directives in nginx on macOS. Also fixes the upgrade path to always rewrite pf rules on bootstrap, preventing stale rules when the anchor file changes between versions. Related: qoliber#20 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
peterjaap
pushed a commit
that referenced
this pull request
Mar 31, 2026
macOS resolves .test domains to both ::1 (IPv6) and 127.0.0.1 (IPv4), and clients try IPv6 first. The pf redirect rules only handled IPv4, causing connection refused errors. This adds inet6 pf rules and enables IPv6 listen directives in nginx on macOS. Also fixes the upgrade path to always rewrite pf rules on bootstrap, preventing stale rules when the anchor file changes between versions. Related: #20 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Linux, *.localhost domains resolve to ::1 (IPv6) before 127.0.0.1. Without IPv6 listen directives, requests hit the wrong server block, causing confusing errors from other projects.
Adds listen [::]:port directives to all nginx templates (Magento, Laravel, proxy) conditionally on Linux.
macOS is unaffected as it uses port forwarding.