more work on api

This commit is contained in:
Kevin Froman 2018-01-11 03:04:12 -06:00
parent 6c61626e0f
commit 0c6d1ed790

4
api.py
View File

@ -15,7 +15,7 @@
''' '''
import flask import flask
from flask import request, Response, abort from flask import request, Response, abort
import configparser, sys, random, threading, hmac, hashlib, base64, time, math, gnupg import configparser, sys, random, threading, hmac, hashlib, base64, time, math, gnupg, os
from core import Core from core import Core
''' '''
@ -96,6 +96,8 @@ class API:
# Public means it is publicly network accessible # Public means it is publicly network accessible
self.validateHost('public') self.validateHost('public')
action = request.args.get('action') action = request.args.get('action')
requestingPeer = request.args.get('myID')
if action == 'firstConnect': if action == 'firstConnect':
pass pass