Using property wrapper for all property accesses
This commit is contained in:
@@ -230,12 +230,18 @@ uint16_t VirtualServerManager::next_available_port(const std::string& host_strin
|
||||
switch (net::address_available(baddress, net::binding_type::TCP)) {
|
||||
case net::binding_result::ADDRESS_USED:
|
||||
goto next_port;
|
||||
|
||||
case net::binding_result::ADDRESS_FREE:
|
||||
case net::binding_result::INTERNAL_ERROR:
|
||||
default:
|
||||
break; /* if we've an internal error we ignore it */
|
||||
}
|
||||
switch (net::address_available(baddress, net::binding_type::UDP)) {
|
||||
case net::binding_result::ADDRESS_USED:
|
||||
goto next_port;
|
||||
|
||||
case net::binding_result::ADDRESS_FREE:
|
||||
case net::binding_result::INTERNAL_ERROR:
|
||||
default:
|
||||
break; /* if we've an internal error we ignore it */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user