always let WebRTCDialer constructor decide the clientID

This commit is contained in:
Shelikhoo 2024-09-12 14:35:03 +01:00 committed by WofWca
parent c7b163de57
commit c322e8b7f5
2 changed files with 3 additions and 4 deletions

View file

@ -164,9 +164,8 @@ func NewSnowflakeClient(config ClientConfig) (*Transport, error) {
max = config.Max
}
eventsLogger := event.NewSnowflakeEventDispatcher()
clientID := turbotunnel.NewClientID()
transport := &Transport{
dialer: NewWebRTCDialerWithNatPolicyAndEventsAndProxyAndClientID(broker, natPolicy, iceServers, max, eventsLogger, config.CommunicationProxy, clientID),
dialer: NewWebRTCDialerWithNatPolicyAndEventsAndProxy(broker, natPolicy, iceServers, max, eventsLogger, config.CommunicationProxy),
eventDispatcher: eventsLogger,
}