Changeset 1277 in ntrip


Ignore:
Timestamp:
Dec 6, 2008, 4:27:55 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r1276 r1277  
    240240  QSettings settings;
    241241  QString proxyHost = settings.value("proxyHost").toString();
    242   int     proxyPort = settings.value("proxyPort").toInt();
    243 
    244   QNetworkProxy proxy;
     242
    245243  if (proxyHost.isEmpty()) {
    246     proxy.setType(QNetworkProxy::NoProxy);
     244    QNetworkProxy proxy(QNetworkProxy::NoProxy);
     245    QNetworkProxy::setApplicationProxy(proxy);
    247246  }
    248247  else {
    249     ////    proxy.setType(QNetworkProxy::HttpProxy);
     248    QNetworkProxy proxy(QNetworkProxy::Socks5Proxy);
    250249    proxy.setHostName(proxyHost);
    251     proxy.setPort(proxyPort);
    252   }
    253   QNetworkProxy::setApplicationProxy(proxy);
     250    proxy.setPort(settings.value("proxyPort").toInt());
     251    QNetworkProxy::setApplicationProxy(proxy);
     252  }
    254253
    255254  // Send Request
Note: See TracChangeset for help on using the changeset viewer.