diff options
Diffstat (limited to 'dhcpv6/options.go')
-rw-r--r-- | dhcpv6/options.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv6/options.go b/dhcpv6/options.go index 308fc2c..467c643 100644 --- a/dhcpv6/options.go +++ b/dhcpv6/options.go @@ -86,7 +86,9 @@ func ParseOption(code OptionCode, optData []byte) (Option, error) { case OptionFQDN: opt, err = ParseOptFQDN(optData) case OptionNTPServer: - opt, err = ParseOptNTPServer(optData) + var o OptNTPServer + err = o.FromBytes(optData) + opt = &o case OptionBootfileURL: opt, err = parseOptBootFileURL(optData) case OptionBootfileParam: |