hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.1k stars 173 forks source link

graftcp-local listen on localhost will fail #16

Closed ihipop closed 4 years ago

ihipop commented 5 years ago
graftcp-local -listen=127.0.0.1:2233 -socks5=127.0.0.1:1081
[2019-03-26 18:30:27] [NOTICE] graftcp-local start
[2019-03-26 18:30:27] [INFO] select_proxy_mode: auto
[2019-03-26 18:30:27] [INFO] graft-local start listening 127.0.0.1:2233...
[2019-03-26 18:30:27] [ERROR] getPidByAddr(127.0.0.1:55604) failed
[2019-03-26 18:30:30] [ERROR] getPidByAddr(127.0.0.1:55702) failed

have to change to graftcp-local -listen=:2233 -socks5=127.0.0.1:1081 why?

hmgle commented 5 years ago

It is very strange. When graftcp-local is set to listening on 127.0.0.1:2233 instead of :2233, it is easy to lead to the fail of getPidByAddr. The specific reason is not very clear now, but I will debug it after soon.

Thank you for your feedback.

Bernolt commented 5 years ago

I have the same issue :(