Skip to content

Commit e47e684

Browse files
authored
Change CM_IP command to use IPv6 address
1 parent 163f63b commit e47e684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/scripts/init/service.d/service_sshd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ do_start() {
208208
commandString="$commandString -p [$CM_IPV4]:22"
209209
fi
210210
elif [ "$BOX_TYPE" = "WNXL11BWL" ]; then
211-
CM_IP=`ip -4 addr show dev $CMINTERFACE scope global | awk '/inet/{print $2}' | cut -d '/' -f1 | head -n1`
211+
CM_IP=`ip -6 addr show dev $CMINTERFACE scope global | awk '/inet/{print $2}' | cut -d '/' -f1 | head -n1`
212212
if [ ! -z $CM_IP ]; then
213213
commandString="$commandString -p [$CM_IP]:22"
214214
fi

0 commit comments

Comments
 (0)