File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -823,21 +823,22 @@ DNS.1 = $HOSTNAME
823823EOF
824824
825825 local DNS_INDEX=2
826- if [ " $PIHOLE_PRESENT " -eq 1 ]; then
826+
827+ if [ " $HOSTNAME " != " pi.hole" ]; then
827828 echo " DNS.${DNS_INDEX} = pi.hole" >> server-openssl.cnf
828829 DNS_INDEX=$(( DNS_INDEX + 1 ))
829830 fi
830-
831- if [ -n " $TAILSCALE_DNS " ] && [ " $TAILSCALE_DNS " != " null" ]; then
831+
832+ if [ -n " $TAILSCALE_DNS " ] && [ " $TAILSCALE_DNS " != " null" ] && [ " $TAILSCALE_DNS " != " pi.hole " ] && [ " $TAILSCALE_DNS " != " $HOSTNAME " ] ; then
832833 echo " DNS.${DNS_INDEX} = $TAILSCALE_DNS " >> server-openssl.cnf
833834 DNS_INDEX=$(( DNS_INDEX + 1 ))
834835 fi
835-
836- if [ -n " $TAILSCALE_SHORT " ] && [ " $TAILSCALE_SHORT " != " $ HOSTNAME" ]; then
836+
837+ if [ -n " $TAILSCALE_SHORT " ] && [ " $TAILSCALE_SHORT " != " null " ] && [ " $TAILSCALE_SHORT " != " $ HOSTNAME" ] && [ " $TAILSCALE_SHORT " != " pi " ] && [ " $TAILSCALE_SHORT " != " pihole " ]; then
837838 echo " DNS.${DNS_INDEX} = $TAILSCALE_SHORT " >> server-openssl.cnf
838839 DNS_INDEX=$(( DNS_INDEX + 1 ))
839840 fi
840-
841+
841842 local IP_INDEX=1
842843 local IP=" "
843844 for IP in $FILTERED_IPS ; do
You can’t perform that action at this time.
0 commit comments