mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
[REST] set REST API behind "-rest" option
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user