summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Karlage <skarlage@get9.io>2018-07-27 09:31:53 -0500
committerGitHub <noreply@github.com>2018-07-27 09:31:53 -0500
commit45ecdd89ec87e6c8d4833d987ef94cab25c064c5 (patch)
tree8d0c605183e6c69aaf9e6973e30be0d72553ac3c
parent6436a75b81e1504d394d8bc480b7ff458b07fcc8 (diff)
parentbb3ffbfadfc3d2fdce66a748bad54446655ecbef (diff)
Merge pull request #98 from lestrozi/fix_indentation
Fix indentation
-rw-r--r--dhcpv6/client.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/dhcpv6/client.go b/dhcpv6/client.go
index caee751..8431482 100644
--- a/dhcpv6/client.go
+++ b/dhcpv6/client.go
@@ -58,14 +58,14 @@ func (c *Client) Exchange(ifname string, solicit DHCPv6, modifiers ...Modifier)
}
conversation = append(conversation, advertise)
- // Decapsulate advertise if it's relayed before passing it to Request
- if advertise.IsRelay() {
- advertiseRelay := advertise.(*DHCPv6Relay)
- advertise, err = advertiseRelay.GetInnerMessage()
- if err != nil {
- return conversation, err
- }
- }
+ // Decapsulate advertise if it's relayed before passing it to Request
+ if advertise.IsRelay() {
+ advertiseRelay := advertise.(*DHCPv6Relay)
+ advertise, err = advertiseRelay.GetInnerMessage()
+ if err != nil {
+ return conversation, err
+ }
+ }
request, reply, err := c.Request(ifname, advertise, nil, modifiers...)
if request != nil {
conversation = append(conversation, request)