diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-04-27 19:05:18 +0100 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2018-04-27 20:05:18 +0200 |
commit | c0a91005599b5d89db3a24758c362f8a95313a3e (patch) | |
tree | a75b9620b45ccf7e17577fb3c7f5a9de9a1ca3a3 /dhcpv6/dhcpv6.go | |
parent | 9b5b976c3d1fb6afabfef659d8f412b43f42f9f0 (diff) |
fix EncapsulateRelay (#48)
Diffstat (limited to 'dhcpv6/dhcpv6.go')
-rw-r--r-- | dhcpv6/dhcpv6.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/dhcpv6.go b/dhcpv6/dhcpv6.go index eb98106..7b8ab72 100644 --- a/dhcpv6/dhcpv6.go +++ b/dhcpv6/dhcpv6.go @@ -137,7 +137,7 @@ func EncapsulateRelay(d DHCPv6, mType MessageType, linkAddr, peerAddr net.IP) (D return nil, fmt.Errorf("Message type must be either RELAY_FORW or RELAY_REPL") } outer := DHCPv6Relay{ - messageType: RELAY_FORW, + messageType: mType, linkAddr: linkAddr, peerAddr: peerAddr, } |