Skip to content

fix Allowed IPs validation & normalize Allowed IPs for routing configuration - #1123

Merged
wojcik91 merged 12 commits into
release/2.1from
allowed_ips_validation
Sep 1, 2026
Merged

fix Allowed IPs validation & normalize Allowed IPs for routing configuration#1123
wojcik91 merged 12 commits into
release/2.1from
allowed_ips_validation

Conversation

@wojcik91

Copy link
Copy Markdown
Contributor

Allow bare IP addresses in tunnel configuration, they are already handled by the backend by adding the correct mask (/32 or /128).
Also strip host bits from Allowed IPs before configuring routing to avoid unnecessary interface configuration errors.

A full fix requires an update in wireguard-rs: DefGuard/wireguard-rs#140

Closes #1084

@wojcik91 wojcik91 self-assigned this Aug 28, 2026
Comment thread src-tauri/client-proto/src/conversions.rs
Comment thread src-tauri/client-proto/src/conversions.rs Outdated
Comment thread src-tauri/client-proto/src/conversions.rs Outdated
t-aleksander
t-aleksander previously approved these changes Sep 1, 2026
Comment thread src-tauri/client-proto/src/conversions.rs Outdated
@wojcik91
wojcik91 merged commit 27f5768 into release/2.1 Sep 1, 2026
8 of 9 checks passed
@wojcik91
wojcik91 deleted the allowed_ips_validation branch September 1, 2026 10:17
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.

4 participants