mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-06 12:43:46 +01:00
http: Parse port in ipv6 addresses.
This commit is contained in:
1 parent
00051fd628
commit
99ed2e4722
1 file changed
+1
-1
@@ -20,7 +20,7 @@ void Url::Split() {
|
||||
host_ = url_.substr(colonSlashSlash + 3, sep - colonSlashSlash - 3);
|
||||
resource_ = url_.substr(sep); // include the slash!
|
||||
|
||||
size_t portsep = host_.find(':');
|
||||
size_t portsep = host_.rfind(':');
|
||||
if (portsep != host_.npos) {
|
||||
port_ = atoi(host_.substr(portsep + 1).c_str());
|
||||
host_ = host_.substr(0, portsep);
|
||||
|
||||
Reference in new issue
Block a user