aboutsummaryrefslogtreecommitdiff
path: root/src/conn_linux.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-17 17:25:45 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-17 17:25:58 +0100
commitfa399a91d5da9874cbf248e00db8dbd87b587e91 (patch)
tree8aaca42f4a3cc11666c12d5077e8ed5ac35200a8 /src/conn_linux.go
parente1227d3af480eae72639cde842b4d538c58936dc (diff)
downloadwireguard-go-fa399a91d5da9874cbf248e00db8dbd87b587e91.tar.gz
wireguard-go-fa399a91d5da9874cbf248e00db8dbd87b587e91.zip
Ported remaining netns.sh
- Ported remaining netns.sh tests - Begin work on generic implementation of bind interface
Diffstat (limited to 'src/conn_linux.go')
-rw-r--r--src/conn_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn_linux.go b/src/conn_linux.go
index 383ff7e..fb576b1 100644
--- a/src/conn_linux.go
+++ b/src/conn_linux.go
@@ -168,7 +168,7 @@ func (end *Endpoint) DstIP() net.IP {
}
}
-func (end *Endpoint) SrcToBytes() []byte {
+func (end *Endpoint) DstToBytes() []byte {
ptr := unsafe.Pointer(&end.src)
arr := (*[unix.SizeofSockaddrInet6]byte)(ptr)
return arr[:]