diff options
author | FxQnLr <[email protected]> | 2023-10-29 21:09:46 +0100 |
---|---|---|
committer | FxQnLr <[email protected]> | 2023-10-29 21:09:46 +0100 |
commit | dd303dc41e4d500e48760f79351720cc2c1c9ffe (patch) | |
tree | b730a1da1e0e58e12494bbab88076d403f4ccd97 /src/db.rs | |
parent | 84c32953ae5f52be44af4b48381747f55cb04f4a (diff) | |
download | webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.tar.gz webol-dd303dc41e4d500e48760f79351720cc2c1c9ffe.zip |
add ip to database and use for ping, remove arc from pingmap
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,7 +12,8 @@ use crate::config::SETTINGS; | |||
12 | pub struct Device { | 12 | pub struct Device { |
13 | pub id: String, | 13 | pub id: String, |
14 | pub mac: String, | 14 | pub mac: String, |
15 | pub broadcast_addr: String | 15 | pub broadcast_addr: String, |
16 | pub ip: String | ||
16 | } | 17 | } |
17 | 18 | ||
18 | pub async fn init_db_pool() -> PgPool { | 19 | pub async fn init_db_pool() -> PgPool { |