mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-17 13:20:25 -04:00
Fixed missing path in env
This commit is contained in:
parent
2fe2f6bb49
commit
8109bce5a3
2 changed files with 8 additions and 2 deletions
|
@ -153,6 +153,8 @@ class Node:
|
|||
RNS.log("Serving page: "+file_path, RNS.LOG_VERBOSE)
|
||||
if os.access(file_path, os.X_OK):
|
||||
env_map = {}
|
||||
if "PATH" in os.environ:
|
||||
env_map["PATH"] = os.environ["PATH"]
|
||||
if link_id != None:
|
||||
env_map["link_id"] = RNS.hexrep(link_id, delimit=False)
|
||||
if remote_identity != None:
|
||||
|
@ -248,4 +250,4 @@ If you are the node operator, you can define your own home page by creating a fi
|
|||
DEFAULT_NOTALLOWED = '''>Request Not Allowed
|
||||
|
||||
You are not authorised to carry out the request.
|
||||
'''
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue