GNServer 0.0.0.0.45__py3-none-any.whl → 0.0.0.0.47__py3-none-any.whl
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/_app.py +1 -1
- GNServer/_client.py +7 -2
- {gnserver-0.0.0.0.45.dist-info → gnserver-0.0.0.0.47.dist-info}/METADATA +1 -1
- {gnserver-0.0.0.0.45.dist-info → gnserver-0.0.0.0.47.dist-info}/RECORD +7 -7
- {gnserver-0.0.0.0.45.dist-info → gnserver-0.0.0.0.47.dist-info}/WHEEL +0 -0
- {gnserver-0.0.0.0.45.dist-info → gnserver-0.0.0.0.47.dist-info}/licenses/LICENSE +0 -0
- {gnserver-0.0.0.0.45.dist-info → gnserver-0.0.0.0.47.dist-info}/top_level.txt +0 -0
GNServer/_app.py
CHANGED
@@ -293,7 +293,7 @@ class App:
|
|
293
293
|
|
294
294
|
|
295
295
|
def _init_sys_routes(self):
|
296
|
-
@self.post('/!gn-vm-host/ping', cors=CORSObject())
|
296
|
+
@self.post('/!gn-vm-host/ping', cors=CORSObject(allow_client_types=['server']))
|
297
297
|
async def r_ping(request: GNRequest):
|
298
298
|
if request.client.ip != '127.0.0.1':
|
299
299
|
raise AllGNFastCommands.Forbidden()
|
GNServer/_client.py
CHANGED
@@ -250,8 +250,13 @@ class AsyncClient:
|
|
250
250
|
devLog(request, '1.1.2', 10, 'Request is GNRequest')
|
251
251
|
|
252
252
|
request = await self._resolve_requests_transport(request)
|
253
|
-
|
254
|
-
|
253
|
+
try:
|
254
|
+
c = await self.connect(request, restart_connection, reconnect_wait, keep_alive=keep_alive)
|
255
|
+
except Exception as e:
|
256
|
+
if isinstance(e, GNResponse):
|
257
|
+
return e
|
258
|
+
else:
|
259
|
+
return GNResponse('error')
|
255
260
|
devLog(request, '1.1.3', 10, f'Connected: {c.status}')
|
256
261
|
|
257
262
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
GNServer/__init__.py,sha256=6CMCZlkBO74PW8i8DAri5xz2fYM9EyPH8vdsLYBMmOo,1560
|
2
|
-
GNServer/_app.py,sha256=
|
3
|
-
GNServer/_client.py,sha256=
|
2
|
+
GNServer/_app.py,sha256=p9TNz6m3eNiRw4g66iilZydqad73e9FcmtLusTP3nJU,17518
|
3
|
+
GNServer/_client.py,sha256=MNNnBl1u9OAafIzDnOz3aYgcJUg8QizEV8QDFdGy8LQ,32071
|
4
4
|
GNServer/_cors_resolver.py,sha256=aDxk4ItaEK-6vlDbkno8FJZEjczGEe8vkOui6_kz5-Y,5950
|
5
5
|
GNServer/_crt.py,sha256=SOmyX7zBiCY9EhVSekksQtBHgTIZVvdqNZ8Ni-E5Zow,1390
|
6
6
|
GNServer/_func_params_validation.py,sha256=pDXRzPVTdPnDHFMMmKd014SConBjFOuaLeJTY0vldlM,11412
|
7
7
|
GNServer/_routes.py,sha256=bJnmQ8uEhPVQgy2tTqE5TEIM8aFXV-lVI7c2nG0rQwk,3384
|
8
8
|
GNServer/_template_resolver.py,sha256=vdJYb_7PjIeTWq-Clr7jyj7QIvPBxplU7EqeOuMJ64c,1409
|
9
|
-
gnserver-0.0.0.0.
|
10
|
-
gnserver-0.0.0.0.
|
11
|
-
gnserver-0.0.0.0.
|
12
|
-
gnserver-0.0.0.0.
|
13
|
-
gnserver-0.0.0.0.
|
9
|
+
gnserver-0.0.0.0.47.dist-info/licenses/LICENSE,sha256=_rN-sb3LemR3cKsEqjJRdXkdt7mME1mkW1BwWEn-zAw,1309
|
10
|
+
gnserver-0.0.0.0.47.dist-info/METADATA,sha256=r9-LTxLBcALai6o3aSp1bCvajalgSAr4uHkt2s_bvmI,830
|
11
|
+
gnserver-0.0.0.0.47.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
12
|
+
gnserver-0.0.0.0.47.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
|
13
|
+
gnserver-0.0.0.0.47.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|