From c1dfae1a6e54329264a7b85aaff84224716eb6c1 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 10 Oct 2015 11:49:34 +0100 Subject: [PATCH] Add options to status --- cmd/relaysrv/status.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/relaysrv/status.go b/cmd/relaysrv/status.go index b6157004e..7dcb71ff3 100644 --- a/cmd/relaysrv/status.go +++ b/cmd/relaysrv/status.go @@ -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 {