|
|
|
@ -121,11 +121,12 @@ void SplitHostPort(std::string in, uint16_t& portOut, std::string& hostOut)
|
|
|
|
|
portOut = n;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (in.size()>0 && in[0] == '[' && in[in.size()-1] == ']')
|
|
|
|
|
if (in.size() > 0 && in[0] == '[' && in[in.size() - 1] == ']') {
|
|
|
|
|
hostOut = in.substr(1, in.size() - 2);
|
|
|
|
|
else
|
|
|
|
|
} else {
|
|
|
|
|
hostOut = in;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string EncodeBase64(Span<const unsigned char> input)
|
|
|
|
|
{
|
|
|
|
|