~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/core/networkproxyfactory.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "networkproxyfactory.h"
 
2
#include "core/logging.h"
2
3
 
3
4
#include <QMutexLocker>
4
5
#include <QSettings>
5
6
#include <QStringList>
 
7
#include <QtDebug>
6
8
 
7
9
#include <stdlib.h>
8
10
 
25
27
  urls << QString::fromLocal8Bit(getenv("ALL_PROXY"));
26
28
  urls << QString::fromLocal8Bit(getenv("all_proxy"));
27
29
 
 
30
  qLog(Debug) << "Detected system proxy URLs:" << urls;
 
31
 
28
32
  foreach (const QString& url_str, urls) {
29
33
    if (url_str.isEmpty())
30
34
      continue;
82
86
        ret.setType(QNetworkProxy::HttpProxy);
83
87
      else
84
88
        ret.setType(QNetworkProxy::Socks5Proxy);
 
89
      qLog(Debug) << "Using proxy URL:" << env_url_;
85
90
    }
86
91
    break;
87
92
#else