Skip to content

[client] Fix bind exclusion routes #4154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

lixmal
Copy link
Collaborator

@lixmal lixmal commented Jul 15, 2025

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 22:38
Copilot

This comment was marked as outdated.

@lixmal lixmal force-pushed the fix-bind-exclusion-routes branch from b7b44c1 to d68acc8 Compare July 15, 2025 22:52
@netbirdio netbirdio deleted a comment from Copilot AI Jul 15, 2025
@lixmal lixmal force-pushed the fix-bind-exclusion-routes branch from d68acc8 to f868fc5 Compare July 16, 2025 19:50
@lixmal lixmal requested a review from Copilot July 16, 2025 20:05
Copy link
Contributor

@Copilot 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 PR fixes bind exclusion routes in the client by improving network connection handling across different platforms. The changes move from Android-specific socket protection to a more generic listener-based approach and introduce platform-specific UDP connection wrapping.

  • Replaces Android-specific control function with generic listener configuration
  • Adds iOS-specific UDP connection wrapper implementation
  • Introduces WrapUDPConn functionality for cross-platform connection handling

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
util/net/listener_listen_ios.go Adds iOS-specific WrapUDPConn implementation that returns connections unchanged
util/net/listener_listen.go Implements generic WrapUDPConn function and adds blank line formatting
client/iface/bind/ice_bind.go Updates ICE bind to use wrapped UDP connections via nbnet.WrapUDPConn
client/iface/bind/control_android.go Removes Android-specific socket protection control function
client/iface/bind/control.go Adds generic control function initialization using listener configuration
Comments suppressed due to low confidence (1)

Copy link

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.

1 participant