When one of the peers has a static public host IP or both peers are in the same local network we establish a direct Wireguard connection bypassing proxy usage. This helps reduce FD usage and improves performance.
* reworked peer connection establishment logic eliminating race conditions and deadlocks while running many peers