8000 refactor(ice): replace magic numbers with named constants for STUN/TURN ports by cppcoffee · Pull Request #697 · webrtc-rs/webrtc · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@cppcoffee
Copy link
Contributor

Replace hardcoded port numbers 3478 and 5349 with DEFAULT_PORT and
DEFAULT_TLS_PORT constants from the stun module to improve code
readability and maintainability.

  • Add import for stun::{DEFAULT_PORT, DEFAULT_TLS_PORT}
  • Replace 3478 with DEFAULT_PORT for STUN/TURN protocols
  • Replace 5349 with DEFAULT_TLS_PORT for STUNS/TURNS protocols

…RN ports

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
@rainliu rainliu merged commit 4327e6e into webrtc-rs:master Jun 22, 2025
5 checks passed
@cppcoffee cppcoffee deleted the port branch July 23, 2025 03:48
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.

2 participants

0