|
|
|
@ -36,6 +36,8 @@ func (srv *tcpServer) serve(c net.Conn) {
|
|
|
|
|
|
|
|
|
|
u, _ := url.Parse(srv.remote)
|
|
|
|
|
|
|
|
|
|
log.Debugf("connected from %s, forward to %s", c.RemoteAddr(), srv.remote)
|
|
|
|
|
|
|
|
|
|
if u.Scheme == "ws" || u.Scheme == "wss" {
|
|
|
|
|
conn1, resp, err := dialer.Dial(srv.remote, nil)
|
|
|
|
|
if err != nil {
|
|
|
|
|