Skip to content

Commit

Permalink
Revert "luci-mod-system: Dropbear: remove custom flag values"
Browse files Browse the repository at this point in the history
This reverts commit 43f60c3.

Signed-off-by: Paul Donald <[email protected]>
  • Loading branch information
systemcrash committed Jun 13, 2024
1 parent 860b321 commit 37ea60d
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ return view.extend({
s.addbtntitle = _('Add instance');

o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
o.default = true;
o.default = o.enabled;

o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
o.nocreate = true;
Expand All @@ -25,13 +25,20 @@ return view.extend({
o.placeholder = 22;

o = s.option(form.Flag, 'PasswordAuth', _('Password authentication'), _('Allow <abbr title="Secure Shell">SSH</abbr> password authentication'));
o.default = true;
o.enabled = 'on';
o.disabled = 'off';
o.default = o.enabled;
o.rmempty = false;

o = s.option(form.Flag, 'RootPasswordAuth', _('Allow root logins with password'), _('Allow the <em>root</em> user to log in with password'));
o.default = true;
o.enabled = 'on';
o.disabled = 'off';
o.default = o.enabled;

o = s.option(form.Flag, 'GatewayPorts', _('Gateway Ports'), _('Allow remote hosts to connect to local SSH forwarded ports'));
o.enabled = 'on';
o.disabled = 'off';
o.default = o.disabled;

return m.render();
}
Expand Down

0 comments on commit 37ea60d

Please sign in to comment.