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:
parent
4b29c4c481
commit
9427e74cf5
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue