log version

This commit is contained in:
open-trade 2020-09-21 23:25:39 +08:00
parent 7aaa2d7aeb
commit c575f279cc

View File

@ -142,6 +142,10 @@ impl RendezvousServer {
) -> ResultType<()> { ) -> ResultType<()> {
let mut socket = FramedSocket::new(addr).await?; let mut socket = FramedSocket::new(addr).await?;
let (tx, mut rx) = mpsc::unbounded_channel::<(RendezvousMessage, SocketAddr)>(); let (tx, mut rx) = mpsc::unbounded_channel::<(RendezvousMessage, SocketAddr)>();
let version = hbb_common::get_version_from_url(&software_url);
if !version.is_empty() {
log::info!("software_url: {}, version: {}", software_url, version);
}
let mut rs = Self { let mut rs = Self {
tcp_punch: Arc::new(Mutex::new(HashMap::new())), tcp_punch: Arc::new(Mutex::new(HashMap::new())),
pm: PeerMap::new()?, pm: PeerMap::new()?,
@ -149,7 +153,7 @@ impl RendezvousServer {
relay_server, relay_server,
serial, serial,
rendezvous_servers, rendezvous_servers,
version: hbb_common::get_version_from_url(&software_url), version,
software_url, software_url,
}; };
let mut listener = new_listener(addr, false).await?; let mut listener = new_listener(addr, false).await?;