From: Adam F. <ad...@sn...> - 2002-09-08 00:31:43
|
A followup to my message below: Gaim does not check proxy settings everytime it is started, only when certain parts of it are empty (host and port I guess). But, sometimes the proxy values get reset to empty for no known reason and then the next time gaim is started it attempts to discover the settings from the environment and goes wrong. The function gaimrc_parse_proxy_uri is called to check the $http_proxy string, and sometime after that the string that was passed to gaimrc_parse_proxy_uri is used to set the proxy values. Unfortunatly, gaimrc_parse_proxy_uri is mangling the string but I cant see why, I just know this from sticking printfs at the begining and end of the function to see what value const char *proxy has :). I dont see anything in there that should change it, maybe I just wasnt looking close enough. On Thu, Aug 29, 2002 at 05:27:12AM +0100, Adam Feakin wrote: > > I have just realised why gaim was breaking the proxy settings whenever I > started it.. http_proxy is set in environment and for some reason gaim > decides it should use that proxy even though it is set not to use a > proxy :) > thats bad, because http_proxy is set to "http://localhost:8080/" and > http_proxy_port is not set at all (which gaim later checks after > discovering http_proxy). > It looks like gaim also checks for HTTP_PROXY and HTTPPROXY environment > variables, so presumably if I set those to anything then gaim would fail > to connect anywhere. > > all because of > > if (proxyhost[0]) > proxytype = PROXY_HTTP; > > in src/gaimrc.c > > All gaim ends up with after trying to discover proxy settings is yes to > use a http proxy, and random strings for the proxy settings. This > happens with both the 0.59 and 0.60 cvs trees. Gaim should probably > only attempt to discover proxy settings from environment if there is no > .gaimrc file present, that is the most sensible suggestion I can come up > with. > > -- > Adam > ad...@sn... -- Adam ad...@sn... |