summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/datamgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/datamgr.cpp b/noncore/settings/aqpkg/datamgr.cpp
index 3933a22..0159a79 100644
--- a/noncore/settings/aqpkg/datamgr.cpp
+++ b/noncore/settings/aqpkg/datamgr.cpp
@@ -252,3 +252,3 @@ void DataManager :: writeOutIpkgConf()
}
- if ( proxyUsername == "" )
+ if ( proxyUsername == "" || (!httpProxyEnabled && !ftpProxyEnabled) )
out << "#option proxy_username <username>" << endl;
@@ -256,3 +256,3 @@ void DataManager :: writeOutIpkgConf()
out << "option proxy_username " << proxyUsername << endl;
- if ( proxyPassword == "" )
+ if ( proxyPassword == "" || (!httpProxyEnabled && !ftpProxyEnabled) )
out << "#option proxy_password <password>" << endl << endl;