Open gitmko0 opened 3 years ago
You can get it in the New() function: lconn.RemoteAddr().String()
You can't. Originating IPs are passed through higher-level protocols (HTTP here for example), there is no place in a TCP to store it - all you see is the proxy IP.
Is it possible to modify the tcp packet and add it at the app level?
e.g. [client] -> [tcp proxy] -> [https terminator] <== this one gets 127.0.0.1 because tcp proxy is 127.0.0.1. how to get the ip of the client?