Commit Graph

328 Commits

Author SHA1 Message Date
yubiuser
a0df3ff6c5 Fix IPv4 address indicator
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-23 21:40:27 +01:00
yubiuser
a0833eefab Add hint to skip 2FA in case the app password was used
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-18 21:14:27 +01:00
yubiuser
f697f997e3 If a CLI password is found, 2FA can be skipped
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-18 21:14:27 +01:00
yubiuser
3df185411c Add 2FA
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-18 21:14:27 +01:00
Michael Woolweaver
64e4927141 remove duplicate text at end of line in DisplayHelp()
Signed-off-by: Michael Woolweaver <michael@woolweaver.bid>
2025-02-13 10:54:27 -06:00
yubiuser
d1b9372044 Disabled IPv6 is not an error
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-12 21:25:03 +01:00
yubiuser
d7517afb17 Clear the screen once on startup
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-12 14:16:23 +01:00
yubiuser
e54e7030e2 Fix startup sequence on mini
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-12 14:09:23 +01:00
yubiuser
7d1a0b02ff Improve DHCP and IPv6 info
Signed-off-by: yubiuser <github@yubiuser.dev>
2025-02-12 14:01:51 +01:00
RD WebDesign
74b3670ca6 Also use a new blue box to represent disabled items
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-02-11 23:45:39 -03:00
RD WebDesign
8e2a93cdae Change the color for some disabled elements to avoid confusion
Using blue color because not every disabled setting means an error.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2025-02-11 23:16:24 -03:00
yubiuser
689e602eff Speedup response handling
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-12-22 23:43:06 +01:00
yubiuser
9bfb33869b Fix CPU load
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-09-26 22:43:49 +02:00
yubiuser
0440ade345 Require all API data after connection is re-established
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 23:20:13 +02:00
yubiuser
09e33964f6 Set --connect-timeout for curl connections
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 22:53:04 +02:00
yubiuser
51fde8aa88 Skip all the processing if FTL is down
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 22:44:14 +02:00
yubiuser
97006b0681 Fix --version command
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 21:05:59 +02:00
yubiuser
ed3143f79a Propagate API response errors upstream
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 15:41:44 +02:00
yubiuser
573d36ff20 padd_data is a global variable
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 15:37:57 +02:00
yubiuser
e18403b922 Suppress curl errors
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 15:33:42 +02:00
yubiuser
d8c6f3344f Re add necessary 2>/dev/null
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 14:42:13 +02:00
yubiuser
285f387fe9 Rename functions to clarify their use
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-08-09 14:41:33 +02:00
RD WebDesign
f1c3382bda Using paths(scalars | true) to return null and false values.
We also check if the value is exactly `null` and, in this case, return the
string "null", as jq would return an empty string for nulls.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2024-08-07 22:49:37 -03:00
DL6ER
1310ea8f48 Redefine jq's paths() as its built-in function skips all pais with values null and false
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-07 22:26:02 +02:00
DL6ER
113ef44b37 Use jq only once for parsing the entire payload after querying the API
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-07 20:26:52 +02:00
DL6ER
5559796a4a Use new FTL api/padd endpoint for querying the data
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-08-05 19:01:55 +02:00
Dominik
b719987e57 Modify PADD to comply with the changes in FTL on the same branch (#395) 2024-07-23 18:05:14 +02:00
DL6ER
ef97d5bd57 Fallback: If there is no default IPv6 gateway, use the default IPv4 gateway interface instead
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-22 14:16:29 +02:00
yubiuser
f918bff777 No need to check for wget in update routine as we check for curl during normal runtime
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-07-18 10:05:23 +02:00
yubiuser
d1707e56a5 Check for required dependencies on startup
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-07-18 08:51:01 +02:00
yubiuser
19808bfb57 Fix idention style
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-07-14 22:25:14 +02:00
yubiuser
c1adc4a6eb DHCP is a top level config object
Signed-off-by: yubiuser <github@yubiuser.dev>
2024-07-14 22:25:14 +02:00
DL6ER
c7f7608659 Fix editorconfig errors even if not introduced by the PR at hand
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-14 16:45:24 +02:00
DL6ER
11723bce97 Modify PADD to comply with the changes in FTL on the same branch
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-07-14 15:10:34 +02:00
DL6ER
770ce440fa Fix old spelling issue
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-29 21:09:43 +02:00
DL6ER
8316033d4d Try to use the CLI password for logins (if enabled and readable by the current user)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-29 21:09:43 +02:00
DL6ER
8b8e219448 Rename API functions for consistency with core code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-06-29 21:09:40 +02:00
yubiuser
50f359d8d0 Deleting a session successfully returns 204 (#379) 2024-01-11 19:35:46 +01:00
Christian König
d58149d5fa Nicer output if no session needed to be deleted
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-07 22:03:54 +01:00
Christian König
79ca42e2e7 Status 200 is gone
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-07 21:05:49 +01:00
yubiuser
b625aca950 Use CHAOS TXT record to construct FTL's API URL (#376) 2024-01-07 15:45:54 +01:00
Christian König
ec5a26a705 Deleting a session successfully returns 204
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-07 13:32:09 +01:00
Christian König
ec305e6607 Return N/A in case FTL can't figure out the device model
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-07 12:56:17 +01:00
Christian König
2455fff66f moveXOffset
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-01-07 12:53:05 +01:00
DL6ER
353c0035d0 The correct key is config.dns.revServer.active
Signed-off-by: DL6ER <dl6er@dl6er.de>
2024-01-07 10:06:18 +01:00
Christian König
266a711e19 Improve error handling
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-05 23:21:36 +01:00
Christian König
a41dcd0bb7 Cover --server localhost case
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-05 22:19:13 +01:00
Christian König
1b243f4a2d Adjust endpoints
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-02 22:09:00 +01:00
Christian König
9aee13872d Use CHAOS TXT to connect to FTL's API
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-12-02 21:53:58 +01:00
yubiuser
c6e8f07f0d When running locally derive port from FTL itself (#362) 2023-08-02 22:11:43 +02:00