mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 15:35:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,21 @@
|
||||
--- a/src/peer.rs
|
||||
+++ b/src/peer.rs
|
||||
@@ -68,17 +68,13 @@ pub(crate) struct PeerMap {
|
||||
impl PeerMap {
|
||||
pub(crate) async fn new() -> ResultType<Self> {
|
||||
let db = std::env::var("DB_URL").unwrap_or({
|
||||
- let mut db = "db_v2.sqlite3".to_owned();
|
||||
+ let db = "/var/run/rustdesk-server/db_v2.sqlite3".to_owned();
|
||||
#[cfg(all(windows, not(debug_assertions)))]
|
||||
{
|
||||
if let Some(path) = hbb_common::config::Config::icon_path().parent() {
|
||||
db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
|
||||
}
|
||||
}
|
||||
- #[cfg(not(windows))]
|
||||
- {
|
||||
- db = format!("./{db}");
|
||||
- }
|
||||
db
|
||||
});
|
||||
log::info!("DB_URL={}", db);
|
||||
Reference in new issue
Block a user