diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-22 04:30:31 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-23 20:00:57 +0100 |
commit | 9a29ae267cc4573f88f5d9871e2aa53ea201e873 (patch) | |
tree | 178ac0efd5722db32eb2651d6e3cbeb58bd1e828 /tun/tuntest | |
parent | 6603c05a4a48219faa7450a40ba766914590133a (diff) |
device: test up/down using virtual conn
This prevents port clashing bugs.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tuntest')
-rw-r--r-- | tun/tuntest/tuntest.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tun/tuntest/tuntest.go b/tun/tuntest/tuntest.go index 80ccdf9..92aa9d8 100644 --- a/tun/tuntest/tuntest.go +++ b/tun/tuntest/tuntest.go @@ -79,7 +79,6 @@ func genICMPv4(payload []byte, dst, src net.IP) []byte { return pkt } -// TODO(crawshaw): find a reusable home for this. package devicetest? type ChannelTUN struct { Inbound chan []byte // incoming packets, closed on TUN close Outbound chan []byte // outbound packets, blocks forever on TUN close |