mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
bind: Show port forwarding information
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
4bfb1accfb
commit
3a0b2cbc01
@ -54,6 +54,11 @@ description = [
|
|||||||
box_name=_(cfg.box_name)),
|
box_name=_(cfg.box_name)),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
port_forwarding_info = [
|
||||||
|
('TCP', 53),
|
||||||
|
('UDP', 53),
|
||||||
|
]
|
||||||
|
|
||||||
CONFIG_FILE = '/etc/bind/named.conf.options'
|
CONFIG_FILE = '/etc/bind/named.conf.options'
|
||||||
|
|
||||||
DEFAULT_CONFIG = '''
|
DEFAULT_CONFIG = '''
|
||||||
|
|||||||
@ -24,7 +24,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
from plinth import actions
|
from plinth import actions
|
||||||
from plinth.views import ServiceView
|
from plinth.views import ServiceView
|
||||||
|
|
||||||
from . import description, managed_services, get_config
|
from . import description, get_config, managed_services, port_forwarding_info
|
||||||
from .forms import BindForm
|
from .forms import BindForm
|
||||||
|
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ class BindServiceView(ServiceView): # pylint: disable=too-many-ancestors
|
|||||||
description = description
|
description = description
|
||||||
show_status_block = True
|
show_status_block = True
|
||||||
form_class = BindForm
|
form_class = BindForm
|
||||||
|
port_forwarding_info = port_forwarding_info
|
||||||
|
|
||||||
def get_initial(self):
|
def get_initial(self):
|
||||||
"""Return the values to fill in the form."""
|
"""Return the values to fill in the form."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user