summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_domain_name_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_domain_name_server.go')
-rw-r--r--dhcpv4/option_domain_name_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_domain_name_server.go b/dhcpv4/option_domain_name_server.go
index 78aaf90..470eaa0 100644
--- a/dhcpv4/option_domain_name_server.go
+++ b/dhcpv4/option_domain_name_server.go
@@ -48,7 +48,7 @@ func (o *OptDomainNameServer) Code() OptionCode {
func (o *OptDomainNameServer) ToBytes() []byte {
ret := []byte{byte(o.Code()), byte(o.Length())}
for _, ns := range o.NameServers {
- ret = append(ret, ns...)
+ ret = append(ret, ns.To4()...)
}
return ret
}