diff options
| author | Jonas Schnelli <[email protected]> | 2014-11-26 13:53:27 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2014-11-26 13:53:27 +0100 |
| commit | 5dc713bfc7bf98c8e1d80fec9c5f5e0417a2bdcd (patch) | |
| tree | 9f2a42987406cfbe1ce26605fe1273229721c425 /src/rpcserver.cpp | |
| parent | [REST] give an appropriate response in warmup phase (diff) | |
| download | discoin-5dc713bfc7bf98c8e1d80fec9c5f5e0417a2bdcd.tar.xz discoin-5dc713bfc7bf98c8e1d80fec9c5f5e0417a2bdcd.zip | |
[REST] set REST API behind "-rest" option
Diffstat (limited to 'src/rpcserver.cpp')
| -rw-r--r-- | src/rpcserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index c10b05cb0..b03016a50 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -955,7 +955,7 @@ void ServiceConnection(AcceptedConnection *conn) break; // Process via HTTP REST API - } else if (strURI.substr(0, 6) == "/rest/") { + } else if (strURI.substr(0, 6) == "/rest/" && GetBoolArg("-rest", false)) { if (!HTTPReq_REST(conn, strURI, mapHeaders, fRun)) break; |