mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Add default proxy params (#3863)
This commit is contained in:
parent
b2bf190dce
commit
169222a306
1 changed files with 6 additions and 0 deletions
|
@ -253,6 +253,12 @@ object Socks5ProxyParams {
|
||||||
|
|
||||||
val DefaultPort = 9050
|
val DefaultPort = 9050
|
||||||
|
|
||||||
|
val defaultProxyParams: Socks5ProxyParams =
|
||||||
|
Socks5ProxyParams(
|
||||||
|
address = InetSocketAddress.createUnresolved("127.0.0.1", DefaultPort),
|
||||||
|
credentialsOpt = None,
|
||||||
|
randomizeCredentials = true)
|
||||||
|
|
||||||
def proxyCredentials(
|
def proxyCredentials(
|
||||||
proxyParams: Socks5ProxyParams): Option[Socks5Connection.Credentials] =
|
proxyParams: Socks5ProxyParams): Option[Socks5Connection.Credentials] =
|
||||||
if (proxyParams.randomizeCredentials) {
|
if (proxyParams.randomizeCredentials) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue