Now can run a TCP port forward like:
./gost -L tcp://:443/bitbucket.org:443
changes on file handler/forward/local/handler.go
- add TTLDomainMap to store domain name => real IP and TTL info.
- every time handle incoming connection, will check the target addr, if addr is IP, do as normal logic
- if targe addr is a domain name, then will use net.LookupIP to lookup IP and cache it to TTLDomainMap, TTL as 5mins.