Update sunami.py

main
witchdocsec 2023-07-09 11:07:00 +01:00 committed by GitHub
parent 9a38d266b4
commit 4b48aa62de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ if args.command == "rfs":
app = Flask(__name__)
@app.route("/rfs",methods=["GET"])
def rfs(rfvs=args.vars):
rfsvars={v.split(":",1)[0]:v.split(":",1)[1] for v in rfvs}
if rfvs:
rfsvars={v.split(":",1)[0]:v.split(":",1)[1] for v in rfvs}
else:
rfsvars=""
return render_template(os.path.join("rfs",args.file),rfsvars=rfsvars)
@app.route("/l",methods=["POST"])
def listen():