webrtc icon indicating copy to clipboard operation
webrtc copied to clipboard

refactor(ice): replace magic numbers with named constants for STUN/TURN ports

Open cppcoffee opened this issue 5 months ago • 0 comments

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

cppcoffee avatar Jun 15 '25 11:06 cppcoffee