mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-12-05 02:44:36 +00:00
support reseed throught the Yggdrasil
This commit is contained in:
1 parent
ed4c00e4f4
commit
d13fbe5549
4 files changed
+103
-45
No files matched your search
+8
-1
@@ -111,7 +111,14 @@ namespace http {
|
||||
pos_p = pos_c + 1;
|
||||
}
|
||||
/* hostname[:port][/path] */
|
||||
pos_c = url.find_first_of(":/", pos_p);
|
||||
if (url[pos_p] == '[') // ipv6
|
||||
{
|
||||
auto pos_b = url.find(']', pos_p);
|
||||
if (pos_b == std::string::npos) return false;
|
||||
pos_c = url.find_first_of(":/", pos_b);
|
||||
}
|
||||
else
|
||||
pos_c = url.find_first_of(":/", pos_p);
|
||||
if (pos_c == std::string::npos) {
|
||||
/* only hostname, without post and path */
|
||||
host = url.substr(pos_p, std::string::npos);
|
||||
|
||||
Reference in new issue
Block a user