mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+1
-1
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user