Closed sunhuachuang closed 3 years ago
when peer stable connections is relay, and then find a directly incoming, and it is this stable connection, change the stable connection to directly.
Better connection.
When incoming stream to server, server check it is new & check it is stable connection on relay.
if peer_list.stables.contains(peer_id) && peer_list.stables.get(peer_id).unwrap().is_relay { // }
Over, test is ok.
What ?
when peer stable connections is relay, and then find a directly incoming, and it is this stable connection, change the stable connection to directly.
Why ?
Better connection.
How ?
When incoming stream to server, server check it is new & check it is stable connection on relay.