From cc91a05686e0212584562d6886df4fcb3421d38f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 19 May 2022 14:29:47 -0700 Subject: [PATCH] ipn/ipnserver: fix build on js/wasm Broken by 3dedcd1640 but we don't have CI coverage yet. Updates #3157 Change-Id: Ie8e95ebd36264887fdeed16fc9f25a857d48124b Signed-off-by: Brad Fitzpatrick --- ipn/ipnserver/proxyconnect.go | 3 +++ ipn/ipnserver/proxyconnect_js.go | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ipn/ipnserver/proxyconnect_js.go diff --git a/ipn/ipnserver/proxyconnect.go b/ipn/ipnserver/proxyconnect.go index ead1eb794..9ca7e7690 100644 --- a/ipn/ipnserver/proxyconnect.go +++ b/ipn/ipnserver/proxyconnect.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !js +// +build !js + package ipnserver import ( diff --git a/ipn/ipnserver/proxyconnect_js.go b/ipn/ipnserver/proxyconnect_js.go new file mode 100644 index 000000000..42cfe44f5 --- /dev/null +++ b/ipn/ipnserver/proxyconnect_js.go @@ -0,0 +1,17 @@ +// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package ipnserver + +import ( + "bufio" + "context" + "net" + + "tailscale.com/types/logger" +) + +func (s *Server) handleProxyConnectConn(ctx context.Context, br *bufio.Reader, c net.Conn, logf logger.Logf) { + panic("unreachable") +}