ekiga r6170 - in trunk: . src/clients
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6170 - in trunk: . src/clients
- Date: Fri, 11 Apr 2008 08:56:59 +0100 (BST)
Author: dsandras
Date: Fri Apr 11 08:56:56 2008
New Revision: 6170
URL: http://svn.gnome.org/viewvc/ekiga?rev=6170&view=rev
Log:
Forgot to commit yesterday.
Modified:
trunk/ChangeLog
trunk/src/clients/stun.cpp
Modified: trunk/src/clients/stun.cpp
==============================================================================
--- trunk/src/clients/stun.cpp (original)
+++ trunk/src/clients/stun.cpp Fri Apr 11 08:56:56 2008
@@ -316,41 +316,13 @@
gnomemeeting_threads_leave ();
}
- /* Are we listening on a public IP address? */
- gnomemeeting_threads_enter ();
- ip_detector = gm_conf_get_string (NAT_KEY "public_ip_detector");
- gnomemeeting_threads_leave ();
-
- if (ip_detector != NULL
- && web_client.GetTextDocument (ip_detector, html)) {
-
- if (!html.IsEmpty ()) {
-
- PRegularExpression regex ("[0-9]*[.][0-9]*[.][0-9]*[.][0-9]*");
- PINDEX len;
-
- if (html.FindRegEx (regex, pos, len))
- public_ip = html.Mid (pos,len);
- }
- }
-
- listener_ip = ep.GetCurrentAddress ();
- pos = listener_ip.Find (":");
- if (pos != P_MAX_INDEX)
- listener_ip = listener_ip.Left (pos);
- has_nat = (listener_ip != public_ip);
- g_free (ip_detector);
-
/* Set the STUN server for the endpoint */
- if (has_nat) {
+ ((OpalManager *) &ep)->SetSTUNServer (stun_host);
- ((OpalManager *) &ep)->SetSTUNServer (stun_host);
-
- stun = ep.GetSTUN ();
- // TODO to improve heh
- ep.GetSIPEndpoint()->start_listening ();
- ep.GetH323Endpoint()->start_listening ();
- }
+ stun = ep.GetSTUN ();
+ // TODO to improve heh
+ ep.GetSIPEndpoint()->start_listening ();
+ ep.GetH323Endpoint()->start_listening ();
if (stun)
nat_type_index = stun->GetNatType ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]