From: Ian Jackson Date: Sat, 24 Jul 2021 14:28:03 +0000 (+0100) Subject: config: Copy defaults from python hippotat X-Git-Tag: hippotat/1.0.0~474 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=1fd87079c151ed1dc6371118824589a8773ddc92;p=hippotat.git config: Copy defaults from python hippotat Directly copied from d5100ea6b9bb1d0d858c5475469f9cc4e3200b3a Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 7e9e222..b9cb744 100644 --- a/src/config.rs +++ b/src/config.rs @@ -6,6 +6,48 @@ use crate::prelude::*; use configparser::ini::Ini; +static DEFAULT_CONFIG: &str = r#" +[COMMON] +max_batch_down = 65536 +max_queue_time = 10 +target_requests_outstanding = 3 +http_timeout = 30 +http_timeout_grace = 5 +max_requests_outstanding = 6 +max_batch_up = 4000 +http_retry = 5 +port = 80 +vroutes = '' +ifname_client = hippo%%d +ifname_server = shippo%%d +max_clock_skew = 300 + +#[server] or [] overrides +ipif = userv root ipif %(local)s,%(peer)s,%(mtu)s,slip,%(ifname)s %(rnets)s + +# relating to virtual network +mtu = 1500 + +# addrs = 127.0.0.1 ::1 +# url + +# relating to virtual network +vvnetwork = 172.24.230.192 +# vnetwork = / +# vaddr = +# vrelay = + + +# [] +# secret = # used by both, must match + +[LIMIT] +max_batch_down = 262144 +max_queue_time = 121 +http_timeout = 121 +target_requests_outstanding = 10 +"#; + #[derive(StructOpt,Debug)] pub struct Opts { /// Top-level config file or directory