Compare commits

..

3 Commits

4 changed files with 18 additions and 2 deletions

View File

@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.8.1] - 2025-06-13
### Fixed
- Improve fail condition when no network is detected
## [5.8.0] - 2025-06-12 ## [5.8.0] - 2025-06-12
### Changed ### Changed

View File

@ -1,3 +1,9 @@
ogagent (5.8.1-1) stable; urgency=medium
* Improve fail condition when no network is detected
-- OpenGnsys developers <info@opengnsys.es> Fri, 13 Jun 2025 10:01:43 +0200
ogagent (5.8.0-1) stable; urgency=medium ogagent (5.8.0-1) stable; urgency=medium
* When client disconnect, assume that the user logged out * When client disconnect, assume that the user logged out

View File

@ -1 +1 @@
5.8.0 5.8.1

View File

@ -147,7 +147,11 @@ class OpenGnSysWorker(ServerWorker):
for t in range(0, 300): for t in range(0, 300):
try: try:
# Get the first network interface # Get the first network interface
self.interface = list(operations.getNetworkInfo())[0] nets = list (operations.getNetworkInfo())
if 0 == len (nets):
logger.error ('No network interfaces found')
raise Exception ('No network interfaces found')
self.interface = nets[0]
except Exception as e: except Exception as e:
# Wait 1 sec. and retry # Wait 1 sec. and retry
logger.warn (e) logger.warn (e)