Skip to content

Commit

Permalink
Merge pull request #2261 from lfdversluis/issue-2259-tunnel-helper-ex…
Browse files Browse the repository at this point in the history
…it-node-flag

Made the exit node option a flag rather instead of argument.
  • Loading branch information
whirm committed Jun 6, 2016
2 parents 9a98642 + 1699f1b commit 03685f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion twisted/twisted/plugins/tunnel_helper_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ def check_yappi_args(profile):
check_yappi_args.coerceDoc = "Profile option should be wall or cpu."

class Options(usage.Options):
optFlags = [
["exit", "x", "Allow being an exit-node"]
]

optParameters = [
["manhole", "m", 0, "Enable manhole telnet service listening at the specified port", int],
["socks5", "p", None, "Socks5 port", check_socks5_port],
["exit", "x", False, "Allow being an exit-node", bool],
["introduce", "i", None, 'Introduce the dispersy port of another tribler instance', check_introduce_port],
["dispersy", "d", -1, 'Dispersy port', check_dispersy_port],
["crawl", "c", None, 'Enable crawler and use the keypair specified in the given filename', check_crawler_keypair],
Expand Down

0 comments on commit 03685f3

Please sign in to comment.