Update hf.js
Browse files
hf.js
CHANGED
@@ -9,6 +9,7 @@ app.use(morgan('dev'));
|
|
9 |
// Get proxy configuration from environment variables
|
10 |
const proxyUrl = process.env.PROXY || '';
|
11 |
console.log(`Proxy configuration: ${proxyUrl ? 'Configured' : 'Not configured'}`);
|
|
|
12 |
|
13 |
// Parse proxy URL
|
14 |
let proxyConfig = null;
|
@@ -24,15 +25,15 @@ if (proxyUrl) {
|
|
24 |
} : undefined
|
25 |
};
|
26 |
|
27 |
-
// Print proxy configuration
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
} catch (error) {
|
37 |
console.error('Failed to parse proxy URL:', error.message);
|
38 |
}
|
|
|
9 |
// Get proxy configuration from environment variables
|
10 |
const proxyUrl = process.env.PROXY || '';
|
11 |
console.log(`Proxy configuration: ${proxyUrl ? 'Configured' : 'Not configured'}`);
|
12 |
+
console.log(`Raw proxy URL: ${proxyUrl}`); // Print the raw proxy URL
|
13 |
|
14 |
// Parse proxy URL
|
15 |
let proxyConfig = null;
|
|
|
25 |
} : undefined
|
26 |
};
|
27 |
|
28 |
+
// Print EXACT proxy configuration with actual username and password
|
29 |
+
console.log('Using proxy with EXACT credentials:', JSON.stringify(proxyConfig));
|
30 |
+
|
31 |
+
if (proxyConfig.auth) {
|
32 |
+
console.log('EXACT AUTH DETAILS:');
|
33 |
+
console.log('Username:', proxyConfig.auth.username);
|
34 |
+
console.log('Password:', proxyConfig.auth.password);
|
35 |
+
}
|
36 |
+
|
37 |
} catch (error) {
|
38 |
console.error('Failed to parse proxy URL:', error.message);
|
39 |
}
|