diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-17 17:25:45 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-17 17:25:58 +0100 |
commit | fa399a91d5da9874cbf248e00db8dbd87b587e91 (patch) | |
tree | 8aaca42f4a3cc11666c12d5077e8ed5ac35200a8 /src/conn_linux.go | |
parent | e1227d3af480eae72639cde842b4d538c58936dc (diff) | |
download | wireguard-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 '')
-rw-r--r-- | src/conn_linux.go | 2 |
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[:] |