Fix reporting of status.

This commit is contained in:
Adam Ierymenko 2021-05-25 14:45:49 -04:00
parent 6b3a7ec827
commit 6ce71c1bc3
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
2 changed files with 6 additions and 2 deletions

View file

@ -1379,6 +1379,8 @@ ZT_VirtualNetworkStatus Network::_status() const
return ZT_NETWORK_STATUS_NOT_FOUND;
case NETCONF_FAILURE_NONE:
return ((_config) ? ZT_NETWORK_STATUS_OK : ZT_NETWORK_STATUS_REQUESTING_CONFIGURATION);
case NETCONF_FAILURE_AUTHENTICATION_REQUIRED:
return ZT_NETWORK_STATUS_AUTHENTICATION_REQUIRED;
default:
return ZT_NETWORK_STATUS_PORT_ERROR;
}