mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 08:11:32 +01:00 
			
		
		
		
	Saves 270 KB. Updates #12614 Change-Id: I4c3fe06d32c49edb3a4bb0758a8617d83f291cf5 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			734 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			734 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) Tailscale Inc & AUTHORS
 | |
| // SPDX-License-Identifier: BSD-3-Clause
 | |
| 
 | |
| //go:build !windows && ts_omit_unixsocketidentity
 | |
| 
 | |
| package ipnauth
 | |
| 
 | |
| import (
 | |
| 	"net"
 | |
| 
 | |
| 	"tailscale.com/types/logger"
 | |
| )
 | |
| 
 | |
| // GetConnIdentity extracts the identity information from the connection
 | |
| // based on the user who owns the other end of the connection.
 | |
| // and couldn't. The returned connIdentity has NotWindows set to true.
 | |
| func GetConnIdentity(_ logger.Logf, c net.Conn) (ci *ConnIdentity, err error) {
 | |
| 	return &ConnIdentity{conn: c, notWindows: true}, nil
 | |
| }
 | |
| 
 | |
| // WindowsToken is unsupported when GOOS != windows and always returns
 | |
| // ErrNotImplemented.
 | |
| func (ci *ConnIdentity) WindowsToken() (WindowsToken, error) {
 | |
| 	return nil, ErrNotImplemented
 | |
| }
 |