mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
ipn/ipnserver: fix Windows connection auth regression
Regression from code movement in d3efe8caf6
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

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 {
|
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 ro = true
|
||||||
const rw = false
|
const rw = false
|
||||||
creds, err := peercred.Get(c)
|
creds, err := peercred.Get(c)
|
||||||
|
Reference in New Issue
Block a user