Browse Source

IPV6: Bug fix in func/ip.sh

asmcc 2 years ago
parent
commit
f68a537e06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      func/ip.sh

+ 1 - 1
func/ip.sh

@@ -101,7 +101,7 @@ update_ip_value_new() {
 get_ip_alias() {
 	# ip address (ipv4/ipv6) as second parameter, otherwise $local_ip (ipv4)
 	ip_for_test="${2-$local_ip}"
-	if [ -n "$ip_for_test"]; then
+	if [ -n "$ip_for_test" ]; then
 		ip_name=$(grep "NAME=" $HESTIA/data/ips/${ip_for_test} | cut -f 2 -d \')
 		if [ -n "$ip_name" ]; then
 			echo "${1//./-}.$ip_name"