diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-16 11:38:19 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-16 11:38:19 +0200 |
commit | 5708e1a023c349af53383d8bfe52e2af65c597bc (patch) | |
tree | e09b659c08674808345cb36b0cf42f8f9d222d98 /src/main.c | |
parent | 852e19a64893fe3109a42719782c3099ec6ce3d5 (diff) | |
download | pianobar-5708e1a023c349af53383d8bfe52e2af65c597bc.tar.gz pianobar-5708e1a023c349af53383d8bfe52e2af65c597bc.tar.bz2 pianobar-5708e1a023c349af53383d8bfe52e2af65c597bc.zip |
client: Proxy type config option added
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -292,8 +292,11 @@ int main (int argc, char **argv) { PianoInit (&ph); /* setup control connection */ - curl_easy_setopt (ph.curlHandle, CURLOPT_PROXY, bsettings.controlProxy); - curl_easy_setopt (ph.curlHandle, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4A); + if (bsettings.controlProxy != NULL && bsettings.controlProxyType != -1) { + curl_easy_setopt (ph.curlHandle, CURLOPT_PROXY, bsettings.controlProxy); + curl_easy_setopt (ph.curlHandle, CURLOPT_PROXYTYPE, + bsettings.controlProxyType); + } curl_easy_setopt (ph.curlHandle, CURLOPT_CONNECTTIMEOUT, 60); termSetBuffer (0); |