about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/xombrero.c b/xombrero.c
index 1d63855..20894e8 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -3070,10 +3070,13 @@ proxy_cmd(struct tab *t, struct karg *args)
 			show_oops(t, "can't toggle proxy");
 			goto done;
 		}
-		if (http_proxy)
+		if (http_proxy) {
 			setup_proxy(NULL);
-		else
+			show_oops(t, "http proxy disabled");
+		} else {
 			setup_proxy(http_proxy_save);
+			show_oops(t, "http_proxy = %s", http_proxy);
+		}
 	}
 done:
 	return (XT_CB_PASSTHROUGH);
@@ -8096,6 +8099,13 @@ main(int argc, char **argv)
 		else
 			setup_proxy(http_proxy);
 	}
+
+	/* the user can optionally have the proxy disabled at startup */
+	if ((http_proxy_starts_enabled == 0) && (http_proxy != NULL)) {
+		http_proxy_save = g_strdup(http_proxy);
+		setup_proxy(NULL);
+	}
+
 #ifndef XT_SOCKET_DISABLE
 	if (opte) {
 		send_cmd_to_socket(argv[0]);