update common

This commit is contained in:
open-trade
2020-09-19 14:25:12 +08:00
parent f4387687a1
commit ea85fa0bb7
3 changed files with 2 additions and 356 deletions

View File

@@ -290,6 +290,7 @@ impl RendezvousServer {
Some(rendezvous_message::Union::misc_info(mi)) => match mi.union {
Some(misc_info::Union::configure_update(mut cu)) => {
if addr.ip() == std::net::IpAddr::V4(std::net::Ipv4Addr::new(127, 0, 0, 1))
&& cu.serial > self.serial
{
self.serial = cu.serial;
self.rendezvous_servers = cu