mirror of
https://github.com/amnezia-vpn/amneziawg-apple.git
synced 2026-10-13 21:34:11 +00:00
[PR #50] feat: import tunnel from amneziawg:// link #50
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-apple#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-apple/pull/50
Author: @drxid
Created: 9/29/2026
Status: 🔄 Open
Base:
master← Head:feat/import-link📝 Commits (1)
030ab45feat: import tunnel from amneziawg:// link📊 Changes
5 files changed (+563 additions, -0 deletions)
View changed files
📝
Sources/WireGuardApp/Localizable.xcstrings(+476 -0)📝
Sources/WireGuardApp/UI/TunnelImporter.swift(+26 -0)📝
Sources/WireGuardApp/UI/iOS/AppDelegate.swift(+4 -0)📝
Sources/WireGuardApp/UI/iOS/Info.plist(+13 -0)📝
Sources/WireGuardApp/UI/iOS/ViewController/MainViewController.swift(+44 -0)📄 Description
What changes
Registers the
amneziawg://URL scheme in the iOS app.Adds import from a link that carries the same wg-quick configuration as a QR code:
configis required. Standard base64 is accepted as well.nameis optional.Before adding the tunnel, shows a confirmation alert with the server endpoint and an editable tunnel name, as the QR code scanner does. Nothing is added or activated without the user's confirmation.
A link opened on a cold start waits for
TunnelsManager, the same way file import does.Adds localized strings for all supported languages.
Why
Today a configuration can be imported only from a file, a QR code, or the clipboard. When the configuration is delivered on the same iPhone, the user cannot scan the QR code, and file import takes several steps through the share sheet.
A link opens the app directly. Safari shows the system "Open in AmneziaWG?" prompt, and the tunnel is added in one tap, in the same way as with other apps that support deep links. The format is not tied to a specific server panel: any tool that can render a QR code can also generate the link.
Requested in amnezia-vpn/amnezia-client#2498.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.