From 857a1500e791f8d1b71e74f2e14e62b026cdb11d Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Tue, 31 Jul 2018 17:04:30 +0200 Subject: fix OptHostName --- dhcpv4/options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpv4/options.go b/dhcpv4/options.go index 4903ab3..53b2ecf 100644 --- a/dhcpv4/options.go +++ b/dhcpv4/options.go @@ -45,7 +45,7 @@ func ParseOption(data []byte) (Option, error) { case OptionRouter: opt, err = ParseOptRouter(data) case OptionHostName: - opt, err = ParseOptDomainName(data) + opt, err = ParseOptHostName(data) case OptionRequestedIPAddress: opt, err = ParseOptRequestedIPAddress(data) case OptionIPAddressLeaseTime: -- cgit v1.2.3