mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-23 10:53:45 +02:00
Stop sending GitHub token if a "hubproxy" instance is in use
This commit is contained in:
@@ -288,6 +288,9 @@ class GitHub extends AppSource {
|
|||||||
settingsProvider,
|
settingsProvider,
|
||||||
);
|
);
|
||||||
String? creds = sourceConfig['github-creds'];
|
String? creds = sourceConfig['github-creds'];
|
||||||
|
if ((additionalSettings['GHReqPrefix'] as String? ?? '').isNotEmpty) {
|
||||||
|
creds = null;
|
||||||
|
}
|
||||||
if (creds != null) {
|
if (creds != null) {
|
||||||
var userNameEndIndex = creds.indexOf(':');
|
var userNameEndIndex = creds.indexOf(':');
|
||||||
if (userNameEndIndex > 0) {
|
if (userNameEndIndex > 0) {
|
||||||
|
Reference in New Issue
Block a user