mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
ipn/ipnserver: fix Windows connection auth regression
Regression from code movement in d3efe8caf636aaa9a8e02b65877878954ea980b7 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user