ipn/ipnserver: fix Windows connection auth regression

Regression from code movement in d3efe8caf6

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/1393/head
Brad Fitzpatrick 3 years ago committed by Brad Fitzpatrick
parent c64bd587ae
commit f11952ad7f

@ -312,6 +312,11 @@ func (s *server) serveConn(ctx context.Context, c net.Conn, logf logger.Logf) {
}
func isReadonlyConn(c net.Conn, logf logger.Logf) bool {
if runtime.GOOS == "windows" {
// Windows doesn't need/use this mechanism, at least yet. It
// has a different last-user-wins auth model.
return false
}
const ro = true
const rw = false
creds, err := peercred.Get(c)

Loading…
Cancel
Save