|
|
@@ -130,7 +130,7 @@ async fn realmain(settings: Args, executor: Arc<Executor<'_>>) -> Result<()> {
|
|
|
// P2p setup
|
|
|
//
|
|
|
let mut net_settings = settings.net.clone();
|
|
|
- net_settings.app_version = option_env!("CARGO_PKG_VERSION");
|
|
|
+ net_settings.app_version = Some(option_env!("CARGO_PKG_VERSION").unwrap_or("").to_string());
|
|
|
let (p2p_send_channel, p2p_recv_channel) = async_channel::unbounded::<Privmsg>();
|
|
|
|
|
|
let p2p = net::P2p::new(net_settings.into()).await;
|