From 0c6d1ed7908636cd2dccbbbd3c1291f1500d2878 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 11 Jan 2018 03:04:12 -0600 Subject: [PATCH] more work on api --- api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index fdeddf8d..aef14784 100755 --- a/api.py +++ b/api.py @@ -15,7 +15,7 @@ ''' import flask 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 ''' @@ -96,6 +96,8 @@ class API: # Public means it is publicly network accessible self.validateHost('public') action = request.args.get('action') + requestingPeer = request.args.get('myID') + if action == 'firstConnect': pass