node-rtc-connection 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2829,15 +2829,15 @@ function requireNativePeerConnectionFactory () {
2829
2829
  const usingRelay = this._selectedLocalCandidate?.type === 'relay' ||
2830
2830
  this._selectedRemoteCandidate?.type === 'relay';
2831
2831
 
2832
- if (!usingRelay) {
2833
- // Tie-breaking: only connect if our port is higher than remote port
2834
- // This ensures only one peer connects, avoiding the race condition
2835
- // Note: This only works for direct connections (host/srflx)
2836
- if (this._localPort < this._remotePort) {
2837
- console.log(`[NativePeerConnection] Not connecting (local port ${this._localPort} < remote port ${this._remotePort}), waiting for incoming`);
2838
- return;
2839
- }
2840
- }
2832
+ // if (!usingRelay) {
2833
+ // // Tie-breaking: only connect if our port is higher than remote port
2834
+ // // This ensures only one peer connects, avoiding the race condition
2835
+ // // Note: This only works for direct connections (host/srflx)
2836
+ // if (this._localPort < this._remotePort) {
2837
+ // console.log(`[NativePeerConnection] Not connecting (local port ${this._localPort} < remote port ${this._remotePort}), waiting for incoming`);
2838
+ // return;
2839
+ // }
2840
+ // }
2841
2841
 
2842
2842
  console.log(`[NativePeerConnection] Connecting to ${this._remoteAddress}:${this._remotePort}`);
2843
2843
  if (usingRelay) {