Skip to content

Commit

Permalink
Pull request #1004: dhcpd: fix dhcpv6 status json
Browse files Browse the repository at this point in the history
Merge in DNS/adguard-home from 2678-json-tag to master

Updates #2678.

Squashed commit of the following:

commit 7c272ae
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Feb 15 13:14:16 2021 +0300

    all: doc changes

commit 3c964f8
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Feb 15 12:54:27 2021 +0300

    dhcpd: fix dhcpv6 status json
  • Loading branch information
ainar-g committed Feb 15, 2021
1 parent e272e19 commit 8a0bc54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ and this project adheres to
longer prevent the DHCP server from starting ([#2667]).
- The server name sent by clients of TLS APIs is not only checked when
`strict_sni_check` is enabled ([#2664]).
- HTTP API request body size limit for the `/control/access/set` API is
increased ([#2666]).
- HTTP API request body size limit for the `POST /control/access/set` HTTP API
is increased ([#2666]).

### Fixed

- The field `"range_start"` in the `GET /control/dhcp/status` HTTP API response
is now correctly named again ([#2678]).
- DHCPv6 server's `ra_slaac_only` and `ra_allow_slaac` settings aren't reset to
`false` on update any more ([#2653]).
- The `Vary` header is now added along with `Access-Control-Allow-Origin` to
Expand All @@ -43,6 +45,7 @@ and this project adheres to
[#2664]: https://github.com/AdguardTeam/AdGuardHome/issues/2664
[#2666]: https://github.com/AdguardTeam/AdGuardHome/issues/2666
[#2667]: https://github.com/AdguardTeam/AdGuardHome/issues/2667
[#2678]: https://github.com/AdguardTeam/AdGuardHome/issues/2678



Expand Down
2 changes: 1 addition & 1 deletion internal/dhcpd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type V6ServerConf struct {

// The first IP address for dynamic leases
// The last allowed IP address ends with 0xff byte
RangeStart net.IP `yaml:"range_start"`
RangeStart net.IP `yaml:"range_start" json:"range_start"`

LeaseDuration uint32 `yaml:"lease_duration" json:"lease_duration"` // in seconds

Expand Down

0 comments on commit 8a0bc54

Please sign in to comment.