-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exiting data over tunnels is only allowed after opt-in via settings #1325
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d33a2e9
Exiting data over tunnels is only allowed after switching the opt-in …
rjruigrok 31dba6e
Payload message for hops refusing to be exit-node
rjruigrok a4fde02
Merge remote-tracking branch 'origin/devel' into exitnode-switch
rjruigrok 584212b
Connectability check on being exit-node
rjruigrok 92282ba
update dispersy pointer
rjruigrok 942347f
small improvements in coding style
rjruigrok ab86a4d
Fix check on return list of exitnodes
rjruigrok be925fe
Fix check on return list of exitnodes
rjruigrok 616cbb2
Merge branch 'exitnode-switch-copy' into exitnode-switch
rjruigrok 5c4ff8f
Merge and conflict fixes with origin/devel
rjruigrok 86d4969
initiating peer chooses exit node
rjruigrok 28976a3
Fix connectability constraint on exit-node
rjruigrok 0fb9c08
moved choice for exitnode to create_circuits
rjruigrok b3439a4
Bugfixes and refactoring on circuit creation
rjruigrok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,7 +223,7 @@ def startTest(self, callback, min_timeout=5): | |
def setup_proxies(): | ||
tunnel_communities = [] | ||
for i in range(3, 7): | ||
tunnel_communities.append(create_proxy(i)) | ||
tunnel_communities.append(create_proxy(i, i > 5)) | ||
|
||
# Connect the proxies to the Tribler instance | ||
for community in self.lm.dispersy.get_communities(): | ||
|
@@ -245,7 +245,7 @@ def setup_proxies(): | |
|
||
callback(tunnel_communities) | ||
|
||
def create_proxy(index): | ||
def create_proxy(index, become_exit_node): | ||
from Tribler.Core.Session import Session | ||
|
||
self.setUpPreSession() | ||
|
@@ -269,8 +269,9 @@ def create_proxy(index): | |
def load_community(session): | ||
keypair = dispersy.crypto.generate_key(u"curve25519") | ||
dispersy_member = dispersy.get_member(private_key=dispersy.crypto.key_to_bin(keypair)) | ||
settings = TunnelSettings() | ||
settings = TunnelSettings(tribler_session=session) | ||
settings.do_test = False | ||
settings.become_exitnode = True #become_exit_node | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixme |
||
return dispersy.define_auto_load(HiddenTunnelCommunity, dispersy_member, (session, settings), load=True)[0] | ||
|
||
return blockingCallFromThread(reactor, load_community, session) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't load the sessionconfig use session: