|
ogagent/pipeline/head This commit looks good
Details
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). |
||
|---|---|---|
| Jenkins | ||
| doc/scheduled-task | ||
| linux | ||
| macos | ||
| src | ||
| windows | ||
| .gitignore | ||
| CHANGELOG.md | ||
| INSTALL.es.txt | ||
| Jenkinsfile | ||
| ogcore-mock.py | ||
| openapi.yml | ||