Pull request: 4465 fix ifaces resp
Merge in DNS/adguard-home from 4465-bad-ifaces-resp to master Closes #4465. Squashed commit of the following: commit cc44252b2f12ba4b15df315253417aba2a3f98a6 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Apr 6 19:21:40 2022 +0300 aghnet: fix get_addresses
This commit is contained in:
@@ -87,8 +87,8 @@ type NetInterface struct {
|
||||
MTU int `json:"mtu"`
|
||||
}
|
||||
|
||||
// MarshalText implements the json.Marshaler interface for NetInterface.
|
||||
func (iface NetInterface) MarshalText() ([]byte, error) {
|
||||
// MarshalJSON implements the json.Marshaler interface for NetInterface.
|
||||
func (iface NetInterface) MarshalJSON() ([]byte, error) {
|
||||
type netInterface NetInterface
|
||||
return json.Marshal(&struct {
|
||||
HardwareAddr string `json:"hardware_address"`
|
||||
|
||||
Reference in New Issue
Block a user