fix(connection): probe the API port from base_url in is_alive
is_alive always opened port 443 on the hostname, so a firewall whose API is reached through base_url on another port (https://fw:8443) read as dead. The probe now takes host and port from base_url, falling back to the scheme's default port. Closes #15
This commit is contained in:
1 parent
e2cac52a12
commit
4e377923db
4 files changed
+50
-3
No files matched your search
@@ -13,6 +13,9 @@ All notable changes to this driver. The format follows
|
||||
3.12 venv no longer has.
|
||||
|
||||
### Fixed
|
||||
- `is_alive()` checks the host and port named in `base_url` (`https://fw:8443`) instead
|
||||
of always port 443 on the hostname, so a firewall whose API listens elsewhere no
|
||||
longer reads as dead (#15).
|
||||
- `configure_snmp_agent()` works on OPNsense 26.x again. The configure step sent
|
||||
fields the os-net-snmp model does not have (`contact`, `location`, `sysobjid`,
|
||||
`bindip`) and `listen` in the shape `get` returns rather than as a string, which
|
||||
|
||||
Reference in new issue
Block a user