This commit is contained in:
Julian Rother 2025-12-07 21:23:18 +01:00
parent 11c3655907
commit a2c6508e4b
Signed by: julian
GPG key ID: C19B924C0CD13341
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import re
import json
from flask import Flask, abort, request, redirect
from flask import Flask, abort, request, redirect, Response
import nftables
from pyroute2 import IPDB
@ -72,7 +73,7 @@ def status():
result['venue-info-url'] = app.config['VENUE_INFO_URL']
result['seconds-remaining'] = mac_timeout // 1000
result['can-extend-session'] = True
return result
return Response(json.dumps(result), mimetype='application/captive+json')
@app.route('/api/login', methods=['POST'])
def login():

View file

@ -1,3 +1,4 @@
[Install]
After=network-online.target
Wants=network-online.target