Go to file
Nicolas Arenas 25fc2cf5f8
ogagent/pipeline/head This commit looks good Details
feat(ogagent): select network interface by routing table instead of first found
On machines with multiple NICs, the agent was always registering with
ogcore using the first interface returned by the OS, which could be the
wrong one if it wasn't the interface with a route to ogcore.

_best_interface() opens a no-op UDP socket toward the ogcore host and
reads the local IP assigned by the kernel routing table, then matches it
against the available interfaces. If the routing query fails (network not
ready yet) it returns None so the detection loop keeps retrying rather
than accepting a wrong interface. Falls back to nets[0] only when the
query succeeds but no interface matches (NAT/VPN scenario).
2026-05-20 14:19:08 +02:00
Jenkins Add Jenkinsfile for devel 2026-05-14 18:24:05 +02:00
doc/scheduled-task refs #1947 add document 2025-05-06 10:34:48 +02:00
linux Update debian changelog 2026-05-11 16:27:56 +02:00
macos refs #531 remove unused code, bump version 2024-08-29 11:03:00 +02:00
src feat(ogagent): select network interface by routing table instead of first found 2026-05-20 14:19:08 +02:00
windows refs #2278 change some labels in the windows installer 2025-06-23 09:58:12 +02:00
.gitignore Add .venv and .vscode to .gitignore 2026-03-16 14:46:27 +01:00
CHANGELOG.md Updated CHANGELOG.md 2026-05-13 10:57:17 +02:00
INSTALL.es.txt refs #247 migrate agent from py2 & qt4/qt5 to py3 & qt6 2024-05-22 11:07:56 +02:00
Jenkinsfile Adds Jenkinsfile 2023-07-19 15:53:27 +02:00
ogcore-mock.py refs #1104 return inventory inline 2024-11-06 13:08:28 +01:00
openapi.yml refs #536 add openapi specification 2024-08-02 10:47:16 +02:00