preparation for https wrapping
kinda working socks4 and socks4a proxying
also works if protocol is https