summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-apinger/root/usr/share
diff options
context:
space:
mode:
authorhitech95 <nicveronese@gmail.com>2024-04-27 11:25:42 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-05-14 20:06:18 +0200
commit2bb1e06b52ea97926317e4f01ef24afb2cc115fb (patch)
tree43c49dff0ea6266a6180620ff8952e578cbe4599 /applications/luci-app-apinger/root/usr/share
parente01f393924faaf62238c0e8eaa5b1a07723125dd (diff)
luci-base: return ipv6 lease time from getExpiry()
This commit introduces a streamlined method for retrieving lease time information on IPv6 interfaces. While IPv4 interfaces typically have a single lease time (available in the interface data), IPv6 interfaces commonly feature multiple lease times due to factors like delegated prefixes or multiple /64 subnet. Users typically receive only one prefix delegation from their ISP, leading this PR to the retrieval of lease time from the first available prefix or IPv6 address. To enhance usability and provide users with a more comprehensive view of lease time information, however, alternative approaches should be discussed. Suggestions include returning an array of lease times or aggregating the various possible values using methods like min or max. These enhancements aim to improve the clarity the lease time management on IPv6 interfaces. Signed-off-by: hitech95 <nicveronese@gmail.com>
Diffstat (limited to 'applications/luci-app-apinger/root/usr/share')
0 files changed, 0 insertions, 0 deletions