Skip to content

Add website spilt tunnel #1004

Description

@mohammadpeyvand

When browsing with a browser, sometimes we need to open sites inside Iran. Please add this feature to the program so that traffic can be separated with sites inside Iran and sites outside Iran

Activity

  1. therealaleph commented on May 10, 2026

    @therealaleph
    Owner

    Reviewed via Anthropic Claude.

    @mohammadpeyvand — already supported via the passthrough_hosts config field. Add Iranian sites you want to access directly (without the Apps Script relay) to that list:

    "passthrough_hosts": [
      "digikala.com",
      "basalam.com",
      "snapp.ir",
      "divar.ir",
      ".ir"
    ]

    Entries use suffix matching (no leading dot needed for exact match; .foo.com matches both foo.com and bar.foo.com). The single entry ".ir" matches every *.ir domain — passes Iranian sites through directly via raw TCP without going through the proxy chain.

    After editing config.json, restart mhrv-rs.

    For the reverse — sites you want to FORCE through Apps Script even when they'd normally SNI-rewrite — that's what PR #977's relay_url_patterns does. Currently in community testing.

    می‌بندم — feature already exists. Open new issue if passthrough_hosts doesn't behave as documented in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions