|
|
@@ -94,10 +94,13 @@ def esegue_conversione(inputfile):
|
|
|
def frontpage(request):
|
|
|
print(__name__)
|
|
|
listaccepted = list()
|
|
|
- listaccepted.append('195.110.154.210')
|
|
|
- listaccepted.append('195.110.154.213')
|
|
|
- listaccepted.append('127.0.0.1')
|
|
|
|
|
|
+ if 'REMOTE' in os.environ:
|
|
|
+ remote = os.environ['REMOTE'].split(',')
|
|
|
+
|
|
|
+ listaccepted.append('127.0.0.1')
|
|
|
+ for r in remote:
|
|
|
+ listaccepted.append(r)
|
|
|
|
|
|
print(request.META)
|
|
|
if 'x_real_ip'.upper() in request.META:
|