Skip to content

Commit

Permalink
Fix XML parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 9, 2023
1 parent f953771 commit c081d24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func (c *CMSystemInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) erro

// LANUserTable is a list of connected devices.
type LANUserTable struct {
Ethernet []LANUserTableClientInfo `xml:"Ethernet"`
WIFI []LANUserTableClientInfo `xml:"WIFI"`
Ethernet []LANUserTableClientInfo `xml:"Ethernet>clientinfo"`
WIFI []LANUserTableClientInfo `xml:"WIFI>clientinfo"`
}

// LANUserTableClientInfo is a device connected to the router.
Expand Down

0 comments on commit c081d24

Please sign in to comment.