In SetProxy, add 1 to pos when parsing port since otherwise we include the colon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
5b9c12e124
commit
bb80bb5b30
@ -387,7 +387,7 @@ void wxURL::SetProxy(const wxString& url_proxy)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
hostname = tmp_str(0, pos);
|
hostname = tmp_str(0, pos);
|
||||||
port = tmp_str(pos, tmp_str.Length()-pos);
|
port = tmp_str(pos+1, tmp_str.Length()-pos);
|
||||||
|
|
||||||
addr.Hostname(hostname);
|
addr.Hostname(hostname);
|
||||||
addr.Service(port);
|
addr.Service(port);
|
||||||
|
Loading…
Reference in New Issue
Block a user