void InitProxy() { if (_certificate == null) { return; } _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext, _certificate); _proxy.AcknowledgeMessageReceived += OnAckMessageReceived; _proxy.AsyncMessageReceived += OnAsyncMessageReceived; _proxy.ErrorMessageReceived += OnErrorMessageReceived; _proxy.RemotingMessageReceived += OnRemotingMessageReceived; _proxy.Disconnected += proxy_Disconnected; _proxy.Connected += proxy_Connected; _proxy.Listen(); }
void InitProxy() { if (_certificate == null) { return; } #if !LCU _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext, _certificate); #else //CEF does not allow self-signed certs so we have to disable TLS for the new client //(locally only, TLS will still be used to communicate with the actual server) //TLS can be disabled for the client in <clientdeploypath>/system.yaml _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext); #endif _proxy.AcknowledgeMessageReceived += OnAckMessageReceived; _proxy.AsyncMessageReceived += OnAsyncMessageReceived; _proxy.ErrorMessageReceived += OnErrorMessageReceived; _proxy.RemotingMessageReceived += OnRemotingMessageReceived; _proxy.Disconnected += proxy_Disconnected; _proxy.Connected += proxy_Connected; _proxy.Listen(); }