We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10782be commit 3a292e5Copy full SHA for 3a292e5
1 file changed
src/hp/magicsock/conn.rs
@@ -2824,7 +2824,8 @@ fn new_re_stun_timer() -> time::Interval {
2824
2825
/// Initial connection setup.
2826
async fn bind(port: u16) -> Result<(RebindingUdpConn, Option<RebindingUdpConn>)> {
2827
- let pconn6 = match RebindingUdpConn::bind(port, Network::Ipv6).await {
+ let ip6_port = if port != 0 { port + 1 } else { 0 };
2828
+ let pconn6 = match RebindingUdpConn::bind(ip6_port, Network::Ipv6).await {
2829
Ok(conn) => Some(conn),
2830
Err(err) => {
2831
info!("rebind ignoring IPv6 bind failure: {:?}", err);
0 commit comments