o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
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;
+ o = s.option(form.Flag, '_direct', _('Bind to Interface'));
+ o.default = o.disabled;
+
+ o = s.option(widgets.NetworkSelect, 'DirectInterface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
+ o.nocreate = true;
+ o.depends('_direct', '1');
+
+ o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen on up to 10 IPs on the given interface or, if unspecified, on all interfaces'));
+ o.nocreate = true;
+ o.depends('_direct', '0');
o = s.option(form.Value, 'Port', _('Port'));
o.datatype = 'port';