Commit 94a68f4e authored by Nolan's avatar Nolan

Remove unused imports.

This quiets down "make check".
parent 311ebb4c
import argparse, json, time, requests, base64
import argparse, time, requests, base64
from hkdf import hkdf_extract, hkdf_expand
USERINFO_POLL_INTERVAL=5
......
#!/usr/bin/env python3
from bottle import run, route, request, response, static_file, template
import requests, socket, os
import socket, os
#XXX This needs to escape all user-supplied values that go into JSON/files.
#XXX Use json.dumps, not strings for JSON.
DOMAIN="https://boundery.me"
@route('/static/<filename:path>')
def send_static(filename):
return static_file(filename,
root=os.path.join(os.path.dirname(os.path.abspath(__file__)),
'static'))
def enable_cors():
if request.headers['Origin'] in (DOMAIN, 'http://localhost:8000'):
response.headers['Access-Control-Allow-Origin'] = request.headers['Origin']
......
import os
import sys
from libnacl.secret import SecretBox
import libnacl
import libnacl.utils
from hkdf import hkdf_extract, hkdf_expand
from zerotier import zt_do, zt_get, zt_post
from zerotier import zt_get, zt_post
if len(sys.argv) < 1:
print("Usage: handle_client.py <network name>", file=sys.stderr)
......
import requests
import json
import sys
import time
# Get the "secret" authtoken for API authentication
......
import requests
import json
import os
import sys
import time
from zerotier import zt_do, zt_get, zt_post
from zerotier import zt_get, zt_post
if len(sys.argv) < 1:
print("Usage: zerotier_allow.py <network name>")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment