Fixes
This commit is contained in:
parent
11c3655907
commit
a2c6508e4b
2 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import re
|
import re
|
||||||
|
import json
|
||||||
|
|
||||||
from flask import Flask, abort, request, redirect
|
from flask import Flask, abort, request, redirect, Response
|
||||||
import nftables
|
import nftables
|
||||||
from pyroute2 import IPDB
|
from pyroute2 import IPDB
|
||||||
|
|
||||||
|
|
@ -72,7 +73,7 @@ def status():
|
||||||
result['venue-info-url'] = app.config['VENUE_INFO_URL']
|
result['venue-info-url'] = app.config['VENUE_INFO_URL']
|
||||||
result['seconds-remaining'] = mac_timeout // 1000
|
result['seconds-remaining'] = mac_timeout // 1000
|
||||||
result['can-extend-session'] = True
|
result['can-extend-session'] = True
|
||||||
return result
|
return Response(json.dumps(result), mimetype='application/captive+json')
|
||||||
|
|
||||||
@app.route('/api/login', methods=['POST'])
|
@app.route('/api/login', methods=['POST'])
|
||||||
def login():
|
def login():
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
[Install]
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue