Add options to status

This commit is contained in:
Audrius Butkevicius 2015-10-10 11:49:34 +01:00
parent 7b5e4ab426
commit c1dfae1a6e

View File

@ -45,6 +45,14 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
rc.rate(30*60/10) * 8 / 1000,
rc.rate(60*60/10) * 8 / 1000,
}
status["options"] = map[string]interface{}{
"network-timeout": networkTimeout,
"ping-interval": pingInterval,
"message-timeout": messageTimeout,
"per-session-rate": sessionLimitBps,
"global-rate": globalLimitBps,
"pools": defaultPoolAddrs,
}
bs, err := json.MarshalIndent(status, "", " ")
if err != nil {