File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
quinn-proto/src/connection Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1638,6 +1638,7 @@ impl Connection {
1638
1638
// permit NAT-rebinding-like migration.
1639
1639
if let Some ( known_remote) = self . path ( path_id) . map ( |path| path. remote ) {
1640
1640
if remote != known_remote && !self . side . remote_may_migrate ( ) {
1641
+ dbg ! ( self . side. side( ) , self . side. remote_may_migrate( ) ) ;
1641
1642
trace ! ( "discarding packet from unrecognized peer {}" , remote) ;
1642
1643
return ;
1643
1644
}
@@ -3094,8 +3095,8 @@ impl Connection {
3094
3095
return ;
3095
3096
}
3096
3097
if remote != self . path_data ( path_id) . remote {
3097
- debug ! ( "discarding packet with unexpected remote during handshake" ) ;
3098
- return ;
3098
+ debug ! ( "updating packet remote during handshake" ) ;
3099
+ self . path_data_mut ( path_id ) . remote = remote ;
3099
3100
}
3100
3101
}
3101
3102
@@ -5307,7 +5308,7 @@ impl ConnectionSide {
5307
5308
fn remote_may_migrate ( & self ) -> bool {
5308
5309
match self {
5309
5310
Self :: Server { server_config } => server_config. migration ,
5310
- Self :: Client { .. } => false ,
5311
+ Self :: Client { .. } => true , // false,
5311
5312
}
5312
5313
}
5313
5314
You can’t perform that action at this time.
0 commit comments