MCPcopy Create free account
hub / github.com/TheNetsky/Microsoft-Rewards-Script / buildProxyConfig

Function buildProxyConfig

scripts/utils.js:221–236  ·  view source on GitHub ↗
(account)

Source from the content-addressed store, hash-verified

219}
220
221export function buildProxyConfig(account) {
222 if (!account?.proxy?.url || !account.proxy.port) {
223 return null
224 }
225
226 const proxy = {
227 server: `${account.proxy.url}:${account.proxy.port}`
228 }
229
230 if (account.proxy.username && account.proxy.password) {
231 proxy.username = account.proxy.username
232 proxy.password = account.proxy.password
233 }
234
235 return proxy
236}
237
238export function setupCleanupHandlers(cleanupFn) {
239 const cleanup = async () => {

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected