diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-10-15 18:03:30 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2018-10-15 18:03:30 +0100 |
commit | f1e31f7484231a7c51b57dba85abd174f043cc1e (patch) | |
tree | 16202b92256c50f9df255e9e76030dca674d089c /dhcpv6/option_archtype.go | |
parent | d17d7ed73609154a9c72e1194a4ad4842447dde8 (diff) |
Added String methods for types (#175)
Diffstat (limited to 'dhcpv6/option_archtype.go')
-rw-r--r-- | dhcpv6/option_archtype.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv6/option_archtype.go b/dhcpv6/option_archtype.go index 231eddd..636d10f 100644 --- a/dhcpv6/option_archtype.go +++ b/dhcpv6/option_archtype.go @@ -39,8 +39,7 @@ func (op *OptClientArchType) Length() int { func (op *OptClientArchType) String() string { atStrings := make([]string, 0) for _, at := range op.ArchTypes { - name := iana.ArchTypeToString(at) - atStrings = append(atStrings, name) + atStrings = append(atStrings, at.String()) } return fmt.Sprintf("OptClientArchType{archtype=%v}", strings.Join(atStrings, ", ")) } |