chore: import upstream snapshot with attribution
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user