summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-31 17:04:30 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-07-31 17:04:30 +0200
commit857a1500e791f8d1b71e74f2e14e62b026cdb11d (patch)
treef61ba2331fbee2d4cc01eb7f4545c7e0922127a4 /dhcpv4
parent727a17d07bc2c8042bd882dd6fcc3001a47933c9 (diff)
fix OptHostName
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/options.go2
1 files changed, 1 insertions, 1 deletions
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: