---
 libproxy/proxy.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libproxy/proxy.c b/libproxy/proxy.c
index 641e791..62da824 100644
--- a/libproxy/proxy.c
+++ b/libproxy/proxy.c
@@ -90,6 +90,14 @@ static char **extract_result(const char *str)
                return result;
        }
 
+       if (strncmp(str, "SOCKS ", 6) == 0) {
+               int len = strlen(str + 6) + 9;
+               result[0] = malloc(len);
+               if (result[0] != NULL)
+                       sprintf(result[0], "socks://%s", str + 6);
+               return result;
+       }
+
        return result;
 }
 
-- 
1.7.5.4

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

Reply via email to