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.
@@ -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
- return gn.GNResponse('ok', {'status': 'pong'})
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.16
3
+ Version: 0.0.0.0.17
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.16
3
+ Version: 0.0.0.0.17
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -5,7 +5,7 @@ filesName = 'GNServer'
5
5
 
6
6
  setup(
7
7
  name=name,
8
- version='0.0.0.0.16',
8
+ version='0.0.0.0.17',
9
9
  author="KeyisB",
10
10
  author_email="keyisb.pip@gmail.com",
11
11
  description=name,
File without changes
File without changes
File without changes