diff --git a/config.json b/config.json index 01a3374..7c2421f 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,7 @@ { "host": "", "domains": { - "youtube": "" + "youtube": "", + "google": "" } } \ No newline at end of file diff --git a/main.go b/main.go index c422d37..b0728f9 100644 --- a/main.go +++ b/main.go @@ -188,11 +188,6 @@ func handleConnection(clientConn net.Conn) { targetHost := strings.ToLower(clientHello.ServerName) - if !strings.HasSuffix(targetHost, ".internal.example.com") { - log.Print("Blocking connection to unauthorized backend") - return - } - if targetHost == config.Host { targetHost = net.JoinHostPort(targetHost, "8443") } else {