Commit b5b18a4e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

dropbear: Allow port forwarding if option is set

parent ba9ef609
...@@ -102,7 +102,8 @@ class Recipe(GenericBaseRecipe): ...@@ -102,7 +102,8 @@ class Recipe(GenericBaseRecipe):
# Disable password login # Disable password login
dropbear_cmd.extend(['-s', '-g']) dropbear_cmd.extend(['-s', '-g'])
# Disable port forwarding # Disable port forwarding
dropbear_cmd.extend(['-j', '-k']) if not self.optionIsTrue('allow-port-forwarding', default=False):
dropbear_cmd.extend(['-j', '-k'])
host = self.options['host'] host = self.options['host']
if ':' in host: if ':' in host:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment