Be compatible with existing PAC files which return something like "proxy
server:port". They work on Windows but they would not work if pacrunner was
case-sensitive.
---
 libproxy/proxy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libproxy/proxy.c b/libproxy/proxy.c
index 641e791..6dfbfd2 100644
--- a/libproxy/proxy.c
+++ b/libproxy/proxy.c
@@ -77,12 +77,12 @@ static char **extract_result(const char *str)
        result[0] = NULL;
        result[1] = NULL;
 
-       if (strcmp(str, "DIRECT") == 0) {
+       if (strcasecmp(str, "DIRECT") == 0) {
                result[0] = strdup("direct://");
                return result;
        }
 
-       if (strncmp(str, "PROXY ", 6) == 0) {
+       if (strncasecmp(str, "PROXY ", 6) == 0) {
                int len = strlen(str + 6) + 8;
                result[0] = malloc(len);
                if (result[0] != NULL)
-- 
1.7.5.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to