mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2017-10-14 Fred Gleason <fredg@paravelsystems.com>
* Implemented a '%r' wildcard for Rivendell Host Name.
This commit is contained in:
@@ -52,7 +52,7 @@ void Xport::AddLog()
|
||||
if(!xport_post->getValue("SERVICE_NAME",&service_name)) {
|
||||
XmlExit("Missing SERVICE_NAME",400,"logs.cpp",LINE_NUMBER);
|
||||
}
|
||||
RDSvc *svc=new RDSvc(service_name);
|
||||
RDSvc *svc=new RDSvc(service_name,xport_config);
|
||||
if(!svc->exists()) {
|
||||
XmlExit("No such service",404,"logs.cpp",LINE_NUMBER);
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ void Xport::ListServices()
|
||||
printf("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
|
||||
printf("<serviceList>\n");
|
||||
while(q->next()) {
|
||||
svc=new RDSvc(q->value(0).toString());
|
||||
svc=new RDSvc(q->value(0).toString(),xport_config);
|
||||
printf("%s",(const char *)svc->xml());
|
||||
delete svc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user