ipn/ipnserver: remove "Server mode" from a user-visible error message

That's an internal nickname.
This commit is contained in:
Brad Fitzpatrick 2020-11-02 09:22:21 -08:00
parent cc3259f8d9
commit f3aa08de76
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
//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 {