You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the std::getline call will return the entire string "1.2.3.4" then std::stoi("1.2.3.4") returns 1 as port, which is obviously wrong. It should simply NOT parse the port if : is not found in the url, and let user specify.