diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi index 7d80b4eaa..1e609eb49 100755 --- a/html/cgi-bin/dns.cgi +++ b/html/cgi-bin/dns.cgi @@ -683,6 +683,13 @@ sub show_add_edit_nameserver() { &Header::openbox('100%', 'left', $Lang::tr{'dnsforward add a new entry'}); } + my $tls_required_image; + + # If the protocol is TLS, dispaly the required image. + if ($settings{'PROTO'} eq "TLS") { + $tls_required_image = "*"; + } + # Add hidden input to store the mode. print "\n"; @@ -692,20 +699,13 @@ print <$Lang::tr{'ip address'}: * -END -; - # If the protocol is TLS, display the TLS hostname input. - if ($settings{'PROTO'} eq "TLS") { -print < - $Lang::tr{'dns tls hostname'}: * + $Lang::tr{'dns tls hostname'}: $tls_required_image -END -; - } -print < $Lang::tr{'remark'}: