Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
Add version to initial message
Dieser Commit ist enthalten in:
Ursprung
4b57bb8eeb
Commit
0f0a87becf
1 geänderte Dateien mit 17 neuen und 9 gelöschten Zeilen
26
src/main.rs
26
src/main.rs
|
@ -50,7 +50,7 @@ fn init_rocket() -> Rocket {
|
||||||
.manage(db::init_pool())
|
.manage(db::init_pool())
|
||||||
.manage(api::start_notification_server())
|
.manage(api::start_notification_server())
|
||||||
.attach(util::AppHeaders())
|
.attach(util::AppHeaders())
|
||||||
.attach(unofficial_warning())
|
.attach(AdHoc::on_launch("Launch Info", launch_info))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Embed the migrations from the migrations folder into the application
|
// Embed the migrations from the migrations folder into the application
|
||||||
|
@ -227,12 +227,20 @@ fn check_web_vault() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn unofficial_warning() -> AdHoc {
|
fn launch_info(_: &Rocket) {
|
||||||
AdHoc::on_launch("Unofficial Warning", |_| {
|
// Remove the target to keep the message more centered
|
||||||
warn!("/--------------------------------------------------------------------\\");
|
macro_rules! w {( $l:literal $(,$e:expr)* ) => {warn!(target: "", $l, $($e),* )}}
|
||||||
warn!("| This is an *unofficial* Bitwarden implementation, DO NOT use the |");
|
|
||||||
warn!("| official channels to report bugs/features, regardless of client. |");
|
w!("/--------------------------------------------------------------------\\");
|
||||||
warn!("| Report URL: https://github.com/dani-garcia/bitwarden_rs/issues/new |");
|
w!("| Starting Bitwarden_RS |");
|
||||||
warn!("\\--------------------------------------------------------------------/");
|
|
||||||
})
|
if let Some(version) = option_env!("GIT_VERSION") {
|
||||||
|
w!("|{:^68}|", format!("Version {}", version));
|
||||||
|
}
|
||||||
|
|
||||||
|
w!("|--------------------------------------------------------------------|");
|
||||||
|
w!("| This is an *unofficial* Bitwarden implementation, DO NOT use the |");
|
||||||
|
w!("| official channels to report bugs/features, regardless of client. |");
|
||||||
|
w!("| Report URL: https://github.com/dani-garcia/bitwarden_rs/issues/new |");
|
||||||
|
w!("\\--------------------------------------------------------------------/");
|
||||||
}
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren