From: Matt Joiner Date: Tue, 4 Aug 2015 16:51:40 +0000 (+1000) Subject: utp.NewSocket now takes network parameter X-Git-Tag: v1.0.0~1075 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=502a7ebebd236efd2af3b39e13cb7e6502e7e547;p=btrtrc.git utp.NewSocket now takes network parameter --- diff --git a/client_test.go b/client_test.go index c59eeef6..dcad1484 100644 --- a/client_test.go +++ b/client_test.go @@ -148,7 +148,7 @@ func TestReducedDialTimeout(t *testing.T) { } func TestUTPRawConn(t *testing.T) { - l, err := utp.NewSocket("") + l, err := utp.NewSocket("udp", "") if err != nil { t.Fatal(err) } @@ -162,7 +162,7 @@ func TestUTPRawConn(t *testing.T) { } }() // Connect a UTP peer to see if the RawConn will still work. - s, _ := utp.NewSocket("") + s, _ := utp.NewSocket("udp", "") defer s.Close() utpPeer, err := s.Dial(fmt.Sprintf("localhost:%d", missinggo.AddrPort(l.Addr()))) if err != nil {