Hi all,

Attached patch make the upstream directive really works.

#config upstream
#       option type proxy
#       option via testproxy:8008
#       option target ".test.domain.invalid"

Currently the above configure directive does not work although the
application can read it from configure file.

The patch fix this bug.

Signed-off-by: Zhou Haibo <[email protected]>
--- tinyproxy-1.8.2/src/conf.c  2010-06-01 10:28:02.000000000 +0800
+++ tinyproxy-1.8.2-mine/src/conf.c 2013-05-21 10:09:49.988834539 +0800
@@ -1046,8 +1046,8 @@
                 return -1;
         port = (int) get_long_arg (line, &match[7]);
 
-        if (match[9].rm_so != -1) {
-                domain = get_string_arg (line, &match[9]);
+        if (match[10].rm_so != -1) {
+                domain = get_string_arg (line, &match[10]);
                 if (domain) {
                         upstream_add (ip, port, domain, &conf->upstream_list);
                         safefree (domain);

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to