kopia lustrzana https://github.com/markqvist/reticulum
				
				
				
			Added path expiry check to tunnel restoration
							rodzic
							
								
									95f81cab7f
								
							
						
					
					
						commit
						4ca00c6973
					
				| 
						 | 
					@ -1115,7 +1115,7 @@ class Transport:
 | 
				
			||||||
                    else:
 | 
					                    else:
 | 
				
			||||||
                        RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because a newer path with fewer hops exist", RNS.LOG_DEBUG)
 | 
					                        RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because a newer path with fewer hops exist", RNS.LOG_DEBUG)
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    if time.time() < expires
 | 
					                    if time.time() < expires:
 | 
				
			||||||
                        should_add = True
 | 
					                        should_add = True
 | 
				
			||||||
                    else:
 | 
					                    else:
 | 
				
			||||||
                        RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because it has expired", RNS.LOG_DEBUG)
 | 
					                        RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because it has expired", RNS.LOG_DEBUG)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue