Skip to content

Conversation

@gmaxwell
Copy link
Contributor

Previously -proxy was not setting the proxy for IsLimited networks, so
if you set your configuration to be onlynet=tor you wouldn't get an
IPv4 proxy set.

The payment protocol gets its proxy configuration from the IPv4 proxy,
and so it would experience a connection leak.

This addresses issue #5355 and also clears up a cosmetic bug where
getinfo proxy output shows nothing when onlynet=tor is set.

Previously -proxy was not setting the proxy for IsLimited networks, so
 if you set your configuration to be onlynet=tor you wouldn't get an
 IPv4 proxy set.

The payment protocol gets its proxy configuration from the IPv4 proxy,
 and so it would experience a connection leak.

This addresses issue #5355 and also clears up a cosmetic bug where
 getinfo proxy output shows nothing when onlynet=tor is set.
@laanwj
Copy link
Member

laanwj commented Nov 24, 2014

Ouch ouch ouch. Good catch. Ideally the payment request code wouldn't even try connecting over IPv4 if the network is limited, but better to err on the safe side.
ACK commithash 3c77714 https://dev.visucore.com/bitcoin/acks/5358

@laanwj laanwj added this to the 0.10.0 milestone Nov 24, 2014
@laanwj
Copy link
Member

laanwj commented Nov 24, 2014

Needs backport to 0.9.x too.

@sipa
Copy link
Member

sipa commented Nov 24, 2014

utACK

@jgarzik
Copy link
Contributor

jgarzik commented Nov 24, 2014

ut ACK

@laanwj laanwj merged commit 3c77714 into bitcoin:master Nov 24, 2014
laanwj added a commit that referenced this pull request Nov 24, 2014
3c77714 Make -proxy set all network types, avoiding a connect leak. (Gregory Maxwell)
gmaxwell added a commit that referenced this pull request Nov 24, 2014
Previously -proxy was not setting the proxy for IsLimited networks, so
 if you set your configuration to be onlynet=tor you wouldn't get an
 IPv4 proxy set.

The payment protocol gets its proxy configuration from the IPv4 proxy,
 and so it would experience a connection leak.

This addresses issue #5355 and also clears up a cosmetic bug where
 getinfo proxy output shows nothing when onlynet=tor is set.

Conflicts:
	src/init.cpp

Rebased-From: 3c77714
Github-Issue: #5358
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants