httpd: expose /fg-home and /fg-root
This commit is contained in:
parent
e3fe8ae199
commit
6f09b9e31e
1 changed files with 2 additions and 0 deletions
|
@ -491,6 +491,8 @@ void MongooseHttpd::init()
|
|||
string rewrites = n->getStringValue("url-rewrites", "");
|
||||
string_list rwl = simgear::strutils::split(rewrites, ",");
|
||||
rwl.push_back(string("/aircraft-dir/=") + fgGetString("/sim/aircraft-dir") + "/" );
|
||||
rwl.push_back(string("/fg-home/=") + fgGetString("/sim/fg-home") + "/" );
|
||||
rwl.push_back(string("/fg-root/=") + fgGetString("/sim/fg-root") + "/" );
|
||||
rewrites.clear();
|
||||
for (string_list::iterator it = rwl.begin(); it != rwl.end(); ++it) {
|
||||
string_list rw_entries = simgear::strutils::split(*it, "=");
|
||||
|
|
Loading…
Add table
Reference in a new issue