Import existing sources
This commit is contained in:
1 parent
38704e2f03
commit
68a17e2442
26 files changed
+1660
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include "webserverutils.h"
|
||||
|
||||
QHostAddress parseHostAddress(const QString &str)
|
||||
{
|
||||
if (str.isEmpty() || str == "Any")
|
||||
return QHostAddress::Any;
|
||||
else if (str == "AnyIPv6")
|
||||
return QHostAddress::AnyIPv6;
|
||||
else if (str == "AnyIPv4")
|
||||
return QHostAddress::AnyIPv4;
|
||||
else if (str == "LocalHost")
|
||||
return QHostAddress::LocalHost;
|
||||
else if (str == "LocalHostIPv6")
|
||||
return QHostAddress::LocalHostIPv6;
|
||||
else
|
||||
return QHostAddress{str};
|
||||
}
|
||||
Reference in new issue
Block a user