pub struct InstanceConfig {
// Exceptional settings
#[special(special_link, SKL::None)] pub link: LinkName,
- pub secret: Secret,
+ #[per_client] pub secret: Secret,
#[special(special_ipif, SKL::PerClient)] pub ipif: String,
// Capped settings:
#[limited] pub http_timeout: Duration,
#[limited] pub target_requests_outstanding: u32,
- // Ordinary settings:
- pub addrs: Vec<IpAddr>,
- pub vnetwork: Vec<IpNet>,
- pub vaddr: IpAddr,
- pub vrelay: IpAddr,
- pub port: u16,
- pub mtu: u32,
+ // Ordinary settings, used by both, not client-specifi:
+ #[global] pub addrs: Vec<IpAddr>,
+ #[global] pub vnetwork: Vec<IpNet>,
+ #[global] pub vaddr: IpAddr,
+ #[global] pub vrelay: IpAddr,
+ #[global] pub port: u16,
+ #[global] pub mtu: u32,
// Ordinary settings, used by server only:
- #[server] pub max_clock_skew: Duration,
- #[server] pub ifname_server: String,
+ #[server] #[per_client] pub max_clock_skew: Duration,
+ #[server] #[global] pub ifname_server: String,
// Ordinary settings, used by client only:
#[client] pub http_timeout_grace: Duration,