platform/config/bind/
ice.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
7pub struct IceBindConfig {
8 pub ip: String,
12
13 pub port: u16,
17
18 pub advertised_ip: String,
23
24 #[serde(default = "default_advertised_port")]
28 pub advertised_port: u16,
29}
30
31fn default_advertised_port() -> u16 {
32 3478
33}
34
35impl Default for IceBindConfig {
36 fn default() -> Self {
37 Self {
38 ip: "0.0.0.0".to_string(),
39 port: 3478,
40 advertised_ip: "127.0.0.1".to_string(),
41 advertised_port: 3478,
42 }
43 }
44}