Commit c8429f74 authored by jan.koester's avatar jan.koester
Browse files

TEST

parent 74cdfd88
Loading
Loading
Loading
Loading
+8 −8
Changes for www/modules/containers.js: 8 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -303,6 +303,14 @@
        const staticBox = h('div', {class: 'row'},
          h('label', {}, t('Address (CIDR)'), h('input', {name: 'address', value: c.address === 'dhcp' ? '' : (c.address || ''), placeholder: '192.168.1.50/24'})),
          h('label', {}, t('Gateway'), h('input', {name: 'gateway', value: c.gateway || '', placeholder: '192.168.1.1'})));
        const ipv6 = h('input', {type: 'checkbox', name: 'ipv6', checked: c.ipv6 !== false});
        const ipv6Box = h('div', {},
          h('div', {class: 'row'},
            h('label', {}, t('IPv6 address (CIDR)'), h('input', {name: 'address6', value: c.address6 || '', placeholder: t('empty: by SLAAC')})),
            h('label', {}, t('IPv6 gateway'), h('input', {name: 'gateway6', value: c.gateway6 || '', placeholder: t('empty: from router advertisements')}))),
          h('label', {class: 'check'}, h('input', {type: 'checkbox', name: 'dhcp6', checked: !!c.dhcp6}), t('DHCPv6 when the router asks for it')),
          h('p', {class: 'hint'}, t('Without an IPv6 address the container takes one by SLAAC when a router in the bridge advertises a prefix.') + ' ' +
            t('Router advertisements also bring name servers (they go into the container\'s resolv.conf unless DNS servers are set). DHCPv6 starts when they ask for it: for an address (M flag) or for name servers only (O flag); not with an IPv6 gateway set.')));
        const bridgeBox = h('div', {},
          h('div', {class: 'row'},
            h('label', {}, t('Bridge'), h('select', {name: 'bridge'},
@@ -318,14 +326,6 @@
          bridges.length ? null : h('p', {class: 'hint'}, t('No bridge yet: create one under Network.')));
        dhcp.addEventListener('change', () => { staticBox.hidden = dhcp.checked; });
        staticBox.hidden = dhcp.checked;
        const ipv6 = h('input', {type: 'checkbox', name: 'ipv6', checked: c.ipv6 !== false});
        const ipv6Box = h('div', {},
          h('div', {class: 'row'},
            h('label', {}, t('IPv6 address (CIDR)'), h('input', {name: 'address6', value: c.address6 || '', placeholder: t('empty: by SLAAC')})),
            h('label', {}, t('IPv6 gateway'), h('input', {name: 'gateway6', value: c.gateway6 || '', placeholder: t('empty: from router advertisements')}))),
          h('label', {class: 'check'}, h('input', {type: 'checkbox', name: 'dhcp6', checked: !!c.dhcp6}), t('DHCPv6 when the router asks for it')),
          h('p', {class: 'hint'}, t('Without an IPv6 address the container takes one by SLAAC when a router in the bridge advertises a prefix.') + ' ' +
            t('Router advertisements also bring name servers (they go into the container\'s resolv.conf unless DNS servers are set). DHCPv6 starts when they ask for it: for an address (M flag) or for name servers only (O flag); not with an IPv6 gateway set.')));
        ipv6.addEventListener('change', () => { ipv6Box.hidden = !ipv6.checked; });
        ipv6Box.hidden = !ipv6.checked;
        const portsHint = h('p', {class: 'hint'});