diff options
Diffstat (limited to 'dhcpv4/option_root_path.go')
-rw-r--r-- | dhcpv4/option_root_path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_root_path.go b/dhcpv4/option_root_path.go index ba6f03f..350109f 100644 --- a/dhcpv4/option_root_path.go +++ b/dhcpv4/option_root_path.go @@ -25,7 +25,7 @@ func (o *OptRootPath) Code() OptionCode { // ToBytes returns a serialized stream of bytes for this option. func (o *OptRootPath) ToBytes() []byte { - return append([]byte{byte(o.Code()), byte(o.Length())}, []byte(o.Path)...) + return []byte(o.Path) } // String returns a human-readable string for this option. |