Changeset 1277 in ntrip
- Timestamp:
- Dec 6, 2008, 4:27:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1276 r1277 240 240 QSettings settings; 241 241 QString proxyHost = settings.value("proxyHost").toString(); 242 int proxyPort = settings.value("proxyPort").toInt(); 243 244 QNetworkProxy proxy; 242 245 243 if (proxyHost.isEmpty()) { 246 proxy.setType(QNetworkProxy::NoProxy); 244 QNetworkProxy proxy(QNetworkProxy::NoProxy); 245 QNetworkProxy::setApplicationProxy(proxy); 247 246 } 248 247 else { 249 //// proxy.setType(QNetworkProxy::HttpProxy);248 QNetworkProxy proxy(QNetworkProxy::Socks5Proxy); 250 249 proxy.setHostName(proxyHost); 251 proxy.setPort( proxyPort);252 }253 QNetworkProxy::setApplicationProxy(proxy);250 proxy.setPort(settings.value("proxyPort").toInt()); 251 QNetworkProxy::setApplicationProxy(proxy); 252 } 254 253 255 254 // Send Request
Note:
See TracChangeset
for help on using the changeset viewer.