Fix the duplicated check of float_ip

In _self_provision function, we should check the local_ip and float_ip,
but it checks the float_ip twice, we should modify one of them to
local_ip.

Signed-off-by: wanghao <sxmatch1986@gmail.com>
Closes-Bug: #1823012

Change-Id: I9bbee989ea48d0bef6fc663e7e168216321c7779
This commit is contained in:
wanghao 2019-03-30 09:18:01 +08:00
parent 4b29c4c481
commit 9427e74cf5
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ int _self_provision ( void )
for ( ;; )
{
get_ip_addresses ( mtcInv.my_hostname, mtcInv.my_local_ip , mtcInv.my_float_ip );
if ( mtcInv.my_float_ip.empty() || mtcInv.my_float_ip.empty() )
if ( mtcInv.my_local_ip.empty() || mtcInv.my_float_ip.empty() )
{
if ( waiting_msg == false )
{