forked from quic-go/quic-go
implement the TLS Cookie extension
This commit is contained in:
@@ -2,6 +2,7 @@ package handshake
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"net"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/internal/protocol"
|
||||
. "github.com/onsi/ginkgo"
|
||||
@@ -62,4 +63,10 @@ var _ = Describe("Fake Conn", func() {
|
||||
Expect(stream.Bytes()).To(Equal([]byte("foobar")))
|
||||
})
|
||||
})
|
||||
|
||||
It("returns its remote address", func() {
|
||||
addr := &net.UDPAddr{IP: net.IPv4(127, 0, 0, 1), Port: 1337}
|
||||
c.remoteAddr = addr
|
||||
Expect(c.RemoteAddr()).To(Equal(addr))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user