chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:23:39 +08:00
commit 0954a9c89d
2746 changed files with 3471385 additions and 0 deletions
@@ -0,0 +1,14 @@
import { Server as ProxyChainServer } from 'proxy-chain';
// --proxy-bypass-list=<-loopback> for launching Chrome
export const createProxyServer = (localAddress: string, username: string, password: string): ProxyChainServer => {
return new ProxyChainServer({
port: 0,
prepareRequestFunction: (input) => {
return {
localAddress,
requestAuthentication: input.username !== username || input.password !== password,
};
},
});
};