Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
$ mgraftcp curl -I https://www.google.com
curl: (60) SSL: no alternative certificate subject name matches target hostname 'www.google.com'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above.
graftcp-local.conf
## graftcp-local configuation
## Listen address (default ":2233")
listen = :2233
## Write logs to file, to stdout if empty
# logfile = graftcp-local.log
## Log level (0-6), 0: debug, 1: info, 2: notice, 3: warn, 4: error,
## 5: critical: 6: fatal
loglevel = 1
## Pipe path for graftcp to send address info (default "/tmp/graftcplocal.fifo")
# pipepath = /tmp/graftcplocal.fifo
## SOCKS5 address (default "127.0.0.1:1080")
socks5 = 127.0.0.1:1080
http_proxy = 127.0.0.1:8118
## SOCKS5 proxy username (default "")
# socks5_username = SOCKS5USERNAME
## SOCKS5 proxy password (default "")
# socks5_password = SOCKS5PASSWORD
## HTTP proxy address (default "")
# http_proxy = 127.0.0.1:8080
## Set the mode for select a proxy (default "auto")
## "auto": select socks5 if socks5 is reachable, else HTTP proxy if HTTP proxy
## is rechable, else direct.
## "random": select the reachable proxy randomly.
## "only_http_proxy": only use http proxy.
## "only_socks5": only use socks5 proxy.
## "direct": direct connect.
# select_proxy_mode = only_socks5
select_proxy_mode = only_http_proxy
## Use the system logger (syslog on Unix, Event Log on Windows)
## use_syslog = true
You can try mgraftcp --enable-debug-log --select_proxy_mode=only_http_proxy --http_proxy=127.0.0.1:8118 curl -v -I https://www.google.com and check the logs.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
graftcp-local.conf
http config of privoxy
i try mgraftcp with curl, then gets different ip
when i set HTTP_PROXY HTTPS_PROXY env
Expected behavior get correct html from this command
Screenshots
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari] chrome
Version [e.g. 22] 版本 129.0.6668.58(正式版本) (64 位)