Proxy bug ?
Posted: Fri Feb 09, 2024 12:06 am
Hi,
I've been noticing this weird but : after i set up a proxy, it works sometimes, sometimes not
I'm using a similar code to the one on the Minibrowser, on the end of the post. Then i check my ip and city using something like www.whatismyip.com and i can check that, sometimes it shows my own ip, sometimes it shows the IP of the proxy (correct).
Is there anything else i should do, besides the code below ? Do i need to wait some time after calling 'Chromium1.UpdatePreferences;' ?
Chromium1.ProxyType := PreferencesFrm.ProxyTypeCbx.ItemIndex;
Chromium1.ProxyServer := PreferencesFrm.ProxyServerEdt.Text;
Chromium1.ProxyPort := strtoint(PreferencesFrm.ProxyPortEdt.Text);
Chromium1.ProxyUsername := PreferencesFrm.ProxyUsernameEdt.Text;
Chromium1.ProxyPassword := PreferencesFrm.ProxyPasswordEdt.Text;
Chromium1.ProxyScriptURL := PreferencesFrm.ProxyScriptURLEdt.Text;
Chromium1.ProxyByPassList := PreferencesFrm.ProxyByPassListEdt.Text;
Chromium1.CustomHeaderName := PreferencesFrm.HeaderNameEdt.Text;
Chromium1.CustomHeaderValue := PreferencesFrm.HeaderValueEdt.Text;
Chromium1.MaxConnectionsPerProxy := PreferencesFrm.MaxConnectionsPerProxyEdt.Value;
case PreferencesFrm.ProxySchemeCb.ItemIndex of
1 : Chromium1.ProxyScheme := psSOCKS4;
2 : Chromium1.ProxyScheme := psSOCKS5;
else Chromium1.ProxyScheme := psHTTP;
end;
Chromium1.UpdatePreferences;
I've been noticing this weird but : after i set up a proxy, it works sometimes, sometimes not
I'm using a similar code to the one on the Minibrowser, on the end of the post. Then i check my ip and city using something like www.whatismyip.com and i can check that, sometimes it shows my own ip, sometimes it shows the IP of the proxy (correct).
Is there anything else i should do, besides the code below ? Do i need to wait some time after calling 'Chromium1.UpdatePreferences;' ?
Chromium1.ProxyType := PreferencesFrm.ProxyTypeCbx.ItemIndex;
Chromium1.ProxyServer := PreferencesFrm.ProxyServerEdt.Text;
Chromium1.ProxyPort := strtoint(PreferencesFrm.ProxyPortEdt.Text);
Chromium1.ProxyUsername := PreferencesFrm.ProxyUsernameEdt.Text;
Chromium1.ProxyPassword := PreferencesFrm.ProxyPasswordEdt.Text;
Chromium1.ProxyScriptURL := PreferencesFrm.ProxyScriptURLEdt.Text;
Chromium1.ProxyByPassList := PreferencesFrm.ProxyByPassListEdt.Text;
Chromium1.CustomHeaderName := PreferencesFrm.HeaderNameEdt.Text;
Chromium1.CustomHeaderValue := PreferencesFrm.HeaderValueEdt.Text;
Chromium1.MaxConnectionsPerProxy := PreferencesFrm.MaxConnectionsPerProxyEdt.Value;
case PreferencesFrm.ProxySchemeCb.ItemIndex of
1 : Chromium1.ProxyScheme := psSOCKS4;
2 : Chromium1.ProxyScheme := psSOCKS5;
else Chromium1.ProxyScheme := psHTTP;
end;
Chromium1.UpdatePreferences;