diff --git a/src/xml-rpc.c b/src/xml-rpc.c index 56d73ebc..c22985da 100644 --- a/src/xml-rpc.c +++ b/src/xml-rpc.c @@ -376,6 +376,12 @@ void xml_handle(WS_CONNINFO *pwsc) { return; } + if(strcasecmp(method,"shutdown") == 0) { + config.stop=1; + xml_return_error(pwsc,200,"Success"); + return; + } + xml_return_error(pwsc,500,"Invalid method"); return; }