summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_relay_agent_information.go
diff options
context:
space:
mode:
authorHu Jun <hujun.work@gmail.com>2020-08-31 19:05:17 -0700
committerHu Jun <hujun.work@gmail.com>2020-08-31 19:05:17 -0700
commit664c04d37abac5eea444ce3987333e4c041126cc (patch)
treefc8b7d9e8c9ef783877f7f2af1873fdebd7a0ffd /dhcpv4/option_relay_agent_information.go
parent7979b0b7eaf1fa465f2a3dbee9f463f1a8d13f20 (diff)
- fixed some test cases broken by this PR
- add a space in OptionGeneric.String() - move the indenting "\n" from OptionHumanizer.Stringify to RelayOptions.String() Signed-off-by: Hu Jun <hujun.work@gmail.com>
Diffstat (limited to 'dhcpv4/option_relay_agent_information.go')
-rw-r--r--dhcpv4/option_relay_agent_information.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_relay_agent_information.go b/dhcpv4/option_relay_agent_information.go
index 175bdb6..a6a2c34 100644
--- a/dhcpv4/option_relay_agent_information.go
+++ b/dhcpv4/option_relay_agent_information.go
@@ -21,7 +21,7 @@ var relayHumanizer = OptionHumanizer{
// String prints the contained options using Relay Agent-specific option code parsing.
func (r RelayOptions) String() string {
- return r.Options.ToString(relayHumanizer)
+ return "\n" + r.Options.ToString(relayHumanizer)
}
// FromBytes parses relay agent options from data.