openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

dhcpv6: fix ivalid json #112

Closed mislavn closed 6 years ago

mislavn commented 6 years ago
"ipv6-prefix": [
    {
        "<some ipv6 address>",
        "preferred-lifetime": 37979,
        "valid-lifetime": 48779,
        "prefix-length": 63
    }
],

Just wanted to point out that the ubus call "ubus call dhcp ipv6leases" does not return a valid JSON. The ipv6 address is missing the key name.

I'm not sure what the key name should be so for now I set it to "address". Please can somebody take a look at this.

Signed-off-by: Mislav Novakovic mislav.novakovic@sartura.hr

dedeckeh commented 6 years ago

Fixed in commit https://git.openwrt.org/?p=project/odhcpd.git;a=commit;h=373495ad610cfffaeac833283d1431e6328a109a; thx