cmd/tailscaled: add support for running an HTTP proxy

This adds support for tailscaled to be an HTTP proxy server.
It shares the same backend dialing code as the SOCK5 server, but the
client protocol is HTTP (including CONNECT), rather than SOCKS.

Fixes #2289

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-09-28 10:16:05 -07:00
committed by Brad Fitzpatrick
parent 29a8fb45d3
commit a7cb241db1
8 changed files with 117 additions and 18 deletions

View File

@@ -25,6 +25,7 @@ import (
_ "net"
_ "net/http"
_ "net/http/httptrace"
_ "net/http/httputil"
_ "net/http/pprof"
_ "net/url"
_ "os"

View File

@@ -25,6 +25,7 @@ import (
_ "net"
_ "net/http"
_ "net/http/httptrace"
_ "net/http/httputil"
_ "net/http/pprof"
_ "net/url"
_ "os"

View File

@@ -25,6 +25,7 @@ import (
_ "net"
_ "net/http"
_ "net/http/httptrace"
_ "net/http/httputil"
_ "net/http/pprof"
_ "net/url"
_ "os"

View File

@@ -25,6 +25,7 @@ import (
_ "net"
_ "net/http"
_ "net/http/httptrace"
_ "net/http/httputil"
_ "net/http/pprof"
_ "net/url"
_ "os"

View File

@@ -29,6 +29,7 @@ import (
_ "net"
_ "net/http"
_ "net/http/httptrace"
_ "net/http/httputil"
_ "net/http/pprof"
_ "net/url"
_ "os"