mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix standalone grabbers (#1384)
* Fix too much copy/paste * Fix typo * Commandlineoptions: Additional error details for Int and Double ranges * Standalone grabbers: Show fps range on error, fix default host address
This commit is contained in:
@@ -61,6 +61,11 @@ namespace NetUtils {
|
||||
///
|
||||
inline bool resolveHostPort(const QString& address, QString& host, quint16& port)
|
||||
{
|
||||
if (address.isEmpty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
QString testUrl;
|
||||
if (address.at(0) != '[' && address.count(':') > 1)
|
||||
{
|
||||
@@ -87,10 +92,10 @@ namespace NetUtils {
|
||||
|
||||
///
|
||||
/// @brief Check if the port is in the valid range
|
||||
/// @param log The logger of the caller to print
|
||||
/// @param[in] address The port to be tested
|
||||
/// @param log The logger of the caller to print
|
||||
/// @param[in] address The port to be tested
|
||||
/// @param[out] hostAddress A hostname to make reference to during logging
|
||||
/// @return True on success else false
|
||||
/// @return True on success else false
|
||||
///
|
||||
|
||||
inline bool resolveHostAddress(Logger* log, const QString& address, QHostAddress& hostAddress)
|
||||
|
Reference in New Issue
Block a user