change proper ip even if modifying TLD, closes: #661
This commit is contained in:
parent
26f5de3d51
commit
7b9d3e8007
|
@ -235,15 +235,15 @@ add_host() {
|
|||
|
||||
delete_host "$domain" "$host"
|
||||
|
||||
if [ "$host" = "@" -o -z "$host" ]; then
|
||||
change_host_ip "$domain" "$PUBLIC_IP" || true
|
||||
fqdn="$domain"
|
||||
else
|
||||
if [ "$host_type" = "$TYPE_IP" ]; then
|
||||
ip="$value"
|
||||
else
|
||||
ip="$PUBLIC_IP"
|
||||
fi
|
||||
if [ "$host" = "@" -o -z "$host" ]; then
|
||||
change_host_ip "$domain" "$ip" || true
|
||||
fqdn="$domain"
|
||||
else
|
||||
change_host_ip "$domain" "$ip" "$host" || true
|
||||
fqdn="${host}.${domain}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue