GNServer 0.0.0.0.16__tar.gz → 0.0.0.0.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer/_app.py +3 -2
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer.egg-info/PKG-INFO +1 -1
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/PKG-INFO +1 -1
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/setup.py +1 -1
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer/__init__.py +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer/_client.py +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer.egg-info/SOURCES.txt +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer.egg-info/dependency_links.txt +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer.egg-info/requires.txt +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/GNServer.egg-info/top_level.txt +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/LICENSE +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/GNServer/mmbConfig.json +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/LICENSE +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/MANIFEST.in +0 -0
- {gnserver-0.0.0.0.16 → gnserver-0.0.0.0.17}/setup.cfg +0 -0
@@ -522,8 +522,9 @@ class App:
|
|
522
522
|
def _init_sys_routes(self):
|
523
523
|
@self.get('/!gn-vm-host/ping')
|
524
524
|
async def r_ping(request: gn.GNRequest):
|
525
|
-
if request
|
526
|
-
|
525
|
+
if request.client_ip != '127.0.0.1':
|
526
|
+
return gn.GNResponse('gn:backend:403', {'error': 'Forbidden'})
|
527
|
+
return gn.GNResponse('ok', {'time': datetime.datetime.now(datetime.UTC).isoformat()})
|
527
528
|
|
528
529
|
|
529
530
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|