Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/defguard_common/src/db/models/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ pub struct DeviceConfig {
pub network_id: Id,
pub network_name: String,
pub config: String,
#[schema(value_type = String)]
#[schema(value_type = Vec<String>)]
pub address: Vec<IpAddr>,
pub endpoint: String,
#[schema(value_type = String)]
#[schema(value_type = Vec<String>)]
pub allowed_ips: Vec<IpNetwork>,
pub pubkey: String,
pub dns: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions crates/defguard_common/src/db/models/wireguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub struct WireguardNetwork<I = NoId> {
pub id: I,
pub name: String,
#[model(ref)]
#[schema(value_type = String)]
#[schema(value_type = Vec<String>)]
pub address: Vec<IpNetwork>,
pub port: i32, // Should be u16
pub pubkey: String,
Expand All @@ -120,7 +120,7 @@ pub struct WireguardNetwork<I = NoId> {
pub mtu: i32, // Should be u32, but sqlx won't allow that.
pub fwmark: i64, // Should be u32, but sqlx won't allow that.
#[model(ref)]
#[schema(value_type = String)]
#[schema(value_type = Vec<String>)]
pub allowed_ips: Vec<IpNetwork>,
pub connected_at: Option<NaiveDateTime>,
pub acl_enabled: bool,
Expand Down
Loading
Loading