Skip to content

Conversation

@Mygod
Copy link
Owner

@Mygod Mygod commented Jan 17, 2026

Fixes #6.

@Mygod Mygod added the enhancement New feature or request label Jan 17, 2026
@Mygod Mygod marked this pull request as ready for review January 17, 2026 00:58
@Mygod Mygod requested a review from Copilot January 17, 2026 00:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds support for configuring multiple domains on the slipstream server, allowing it to accept DNS queries for different domain suffixes. When multiple domains are configured, the server selects the longest matching suffix for each incoming query.

Changes:

  • Added repeatable --domain flag to server CLI and environment variable support (DOMAINS and CLIENT_DOMAIN) in test scripts
  • Implemented longest-suffix matching algorithm in DNS decoder with comprehensive test coverage
  • Added overlap detection with warnings for duplicate or overlapping domain configurations

Reviewed changes

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

Show a summary per file
File Description
scripts/interop/run_rust_rust.sh Added support for DOMAINS and CLIENT_DOMAIN environment variables with parsing and sanitization
scripts/README.md Updated documentation to mention multi-domain environment variables
docs/usage.md Marked --domain as repeatable and documented longest-suffix matching behavior
docs/protocol.md Added specification for multi-domain suffix matching
docs/dns-codec.md Updated codec documentation to reflect multi-domain support
crates/slipstream-server/tests/cert_pinning_e2e.rs Modified e2e test to exercise multi-domain functionality
crates/slipstream-server/src/server.rs Added domain overlap warnings and switched to decode_query_with_domains
crates/slipstream-server/src/main.rs Changed --domain argument from single String to Vec with required flag
crates/slipstream-dns/tests/multi_domain.rs Added comprehensive unit tests for multi-domain matching behavior
crates/slipstream-dns/src/lib.rs Exported decode_query_with_domains function
crates/slipstream-dns/src/dns.rs Implemented extract_subdomain_multi with longest-suffix matching algorithm
.github/workflows/ci.yml Added multi-domain test configuration to CI matrix

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

Copy link

Copilot AI left a comment

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 12 out of 12 changed files in this pull request and generated 1 comment.


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

@Mygod Mygod merged commit abba15d into main Jan 17, 2026
22 checks passed
@Mygod Mygod deleted the multi-domain branch January 17, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiple domian use in the server

2 participants