diff --git a/src/net/util.cpp b/src/net/util.cpp index 5073f77..91bfa51 100644 --- a/src/net/util.cpp +++ b/src/net/util.cpp @@ -309,9 +309,14 @@ bool ylib::network::parse_url_host(const std::string &url, std::string &host) } __arr = strutils::split(temp,':'); if (__arr.size() == 2) - host = __arr[0]; + { + host = __arr[0]+":"+__arr[1]; + } + else host = temp; + + return true; } bool ylib::network::is_ipv4(const std::string& value)