From c53b1541716c8acf3525ec4cabca455e590d7db8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 3 Jul 2020 02:21:51 +0000 Subject: [PATCH] tstest/natlab: use &Network in test. Signed-off-by: David Anderson --- tstest/natlab/natlab_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tstest/natlab/natlab_test.go b/tstest/natlab/natlab_test.go index 131851282..c850d2463 100644 --- a/tstest/natlab/natlab_test.go +++ b/tstest/natlab/natlab_test.go @@ -78,7 +78,7 @@ func TestSendPacket(t *testing.T) { } func TestMultiNetwork(t *testing.T) { - lan := Network{ + lan := &Network{ Name: "lan", Prefix4: mustPrefix("192.168.0.0/24"), } @@ -88,9 +88,9 @@ func TestMultiNetwork(t *testing.T) { nat := NewMachine("nat") server := NewMachine("server") - ifClient := client.Attach("eth0", &lan) + ifClient := client.Attach("eth0", lan) ifNATWAN := nat.Attach("ethwan", internet) - ifNATLAN := nat.Attach("ethlan", &lan) + ifNATLAN := nat.Attach("ethlan", lan) ifServer := server.Attach("eth0", internet) clientPC, err := client.ListenPacket("udp", ":123")