fix: Remove ICEServer proxying from client to server (#400)

This made testing simple, but enabled insecure behavior. This allows
the listener to fetch ICEServers from a remote location, which will
likely be coderd.
This commit is contained in:
Kyle Carberry
2022-03-06 18:41:02 -06:00
committed by GitHub
parent 44d83e46ff
commit 55784d3565
11 changed files with 126 additions and 514 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func TestAgent(t *testing.T) {
func setup(t *testing.T) proto.DRPCPeerBrokerClient {
client, server := provisionersdk.TransportPipe()
closer := agent.New(func(ctx context.Context) (*peerbroker.Listener, error) {
return peerbroker.Listen(server, &peer.ConnOptions{
return peerbroker.Listen(server, nil, &peer.ConnOptions{
Logger: slogtest.Make(t, nil),
})
}, &agent.Options{