@@ -69,7 +69,6 @@ pub struct SettingEngine {
69
69
pub ( crate ) vnet : Option < Arc < Net > > ,
70
70
//BufferFactory :func(packetType packetio.BufferPacketType, ssrc uint32) io.ReadWriteCloser,
71
71
//iceTCPMux :ice.TCPMux,?
72
- //iceUDPMux :ice.UDPMux,?
73
72
//iceProxyDialer :proxy.Dialer,?
74
73
pub ( crate ) udp_network : UDPNetwork ,
75
74
pub ( crate ) disable_media_engine_copy : bool ,
@@ -134,6 +133,9 @@ impl SettingEngine {
134
133
self . timeout . ice_relay_acceptance_min_wait = t;
135
134
}
136
135
136
+ /// set_udp_network allows ICE traffic to come through Ephemeral or UDPMux.
137
+ /// UDPMux drastically simplifying deployments where ports will need to be opened/forwarded.
138
+ /// UDPMux should be started prior to creating PeerConnections.
137
139
pub fn set_udp_network ( & mut self , udp_network : UDPNetwork ) {
138
140
self . udp_network = udp_network;
139
141
}
@@ -275,13 +277,6 @@ impl SettingEngine {
275
277
// self.iceTCPMux = tcpMux
276
278
//}
277
279
278
- // SetICEUDPMux allows ICE traffic to come through a single UDP port, drastically
279
- // simplifying deployments where ports will need to be opened/forwarded.
280
- // UDPMux should be started prior to creating PeerConnections.
281
- //pub fn SetICEUDPMux(&mut self, udpMux ice.UDPMux) {
282
- // self.iceUDPMux = udpMux
283
- //}
284
-
285
280
// SetICEProxyDialer sets the proxy dialer interface based on golang.org/x/net/proxy.
286
281
//pub fn SetICEProxyDialer(&mut self, d proxy.Dialer) {
287
282
// self.iceProxyDialer = d
0 commit comments