Time experemental options

This commit is contained in:
Alex 2018-03-01 08:58:05 +07:00
parent 5a2b795440
commit ea899fbbfd
17 changed files with 264 additions and 129 deletions

View file

@ -230,6 +230,12 @@ namespace config {
("exploratory.inbound.quantity", value<int>()->default_value(3), "Exploratory inbound tunnels quantity")
("exploratory.outbound.quantity", value<int>()->default_value(3), "Exploratory outbound tunnels quantity")
;
options_description time("Time Options");
time.add_options()
("time.use_ntp", value<bool>()->default_value(false), "Use NTP")
("time.correcting", value<bool>()->default_value(false), "EXPEREMENTAL: Try correcting with peer, unsecurity")
("time.ntp_server", value<std::string>()->default_value(offical_ntp_server), "NTP Server host")
;
m_OptionsDesc
.add(general)
@ -248,6 +254,7 @@ namespace config {
.add(trust)
.add(websocket)
.add(exploratory)
.add(time)
;
}