mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
Fix reporting of status.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user