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,6 +102,7 @@ class Recipe(GenericBaseRecipe): ...@@ -102,6 +102,7 @@ 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
if not self.optionIsTrue('allow-port-forwarding', default=False):
dropbear_cmd.extend(['-j', '-k']) dropbear_cmd.extend(['-j', '-k'])
host = self.options['host'] host = self.options['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