mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-24 10:10:59 +00:00
ipn/ipnserver: remove "Server mode" from a user-visible error message
That's an internal nickname.
This commit is contained in:
parent
cc3259f8d9
commit
f3aa08de76
@ -285,7 +285,7 @@ func (s *server) addConn(c net.Conn, isHTTP bool) (ci connIdentity, err error) {
|
|||||||
}
|
}
|
||||||
if su := s.serverModeUser; su != nil && ci.UserID != su.Uid {
|
if su := s.serverModeUser; su != nil && ci.UserID != su.Uid {
|
||||||
//lint:ignore ST1005 we want to capitalize Tailscale here
|
//lint:ignore ST1005 we want to capitalize Tailscale here
|
||||||
return ci, fmt.Errorf("Tailscale running in server mode as %s. Access denied.", su.Username)
|
return ci, fmt.Errorf("Tailscale running as %s. Access denied.", su.Username)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !isHTTP {
|
if !isHTTP {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user